Colour palette from a photo

Choose a photo and get its main colours as a palette, with HEX and RGB codes to copy, plus light, dark and muted background colours for a matching collage.

Free, no sign-upRuns in your browser
Colours

Choose a photo to see its colours.

Choose a photo or drop it here. It stays on your device.
How to use it

Get a palette from a photo in three steps.

  1. Choose a photo

    Pick a photo from your device or drop it on the tool. It is read in your browser and never uploaded.

  2. Pick how many colours

    Choose 5, 6 or 8 colours. Tap any swatch to copy its HEX code.

  3. Use or save the palette

    Take a suggested background for your collage, or download the photo with its palette as one image.

How it works

How the main colours are found.

A photo holds millions of slightly different colours, so the tool first makes a small copy of it. A 4032 × 3024 px phone photo becomes 150 × 113 px, about 17,000 pixels, which is plenty to see its colours and quick to work through.

It then sorts those pixels into groups of similar colours. The group with the widest spread of colours is split in two again and again until there are as many groups as you asked for. Each group is then tidied up a few times so every pixel sits with the colour it is closest to.

The average of each group becomes one swatch, and the swatches are ordered from the largest area of the photo to the smallest. A sunny beach photo, for example, might start with a soft sand colour and a sea blue, followed by smaller touches such as a towel or a sunhat.

The collage backgrounds are made from the palette itself: a pale tint of its lightest colour, a deep shade of its darkest colour, and a softened version of its main colour. They sit calmly behind photos without fighting with them.

SnapLayout

Make the whole collage in SnapLayout.

SnapLayout is a collage and carousel app for iPhone. Pick a layout, add your photos and export at the exact size for Instagram, TikTok or Facebook.

Download on the App Store
App Store
4.5
Read reviews →

Frequently asked questions

Choose the photo here and tap any swatch in the palette. Its HEX code, such as #3A7CA5, is copied so you can paste it into a design app, a website or SnapLayout.
The palette shows the colours that cover the most of the photo. A small detail, such as a red flower in a green field, can be too small to get its own swatch. Choosing 8 colours gives small details a better chance.
A light or muted colour from the photos keeps the collage calm and lets the pictures stand out. A dark shade suits night photos and moody edits. Using one palette across all photos makes the collage feel like one piece.
No. The tool runs entirely in your browser and your photo never leaves your device.