Color Palette from Image
Add a picture and choose how many colours you want. You get the dominant colours, how much of the picture each covers, which text colour is most readable on each, and CSS to paste.
Free, no sign-up. Your picture is analysed in your browser and never uploaded.
Your picture
Add a picture to find its colours.
How to
Get a palette in three steps
Add a picture
Drag it onto the box or choose it. A photo, logo or thumbnail all work.
Choose how many colours
Fewer colours give the big blocks of the picture; more colours pick out smaller accents.
Copy what you need
Click a swatch to copy its HEX code, copy the CSS variables, or use the buttons to copy the list or download JSON.
Getting a useful palette
- Start with 5 or 6 colours, then raise it if an accent colour is missing.
- A large background can take over the result. Crop the picture first if you want the colours of the subject only.
- Use the text column to see whether white, black or another palette colour is readable on each swatch.
- Colours are averages of similar pixels, so they may not match any single pixel exactly.
FAQ
Color palette from image questions
Is my picture uploaded?
No. Your browser reads the picture and finds the colours itself. The page makes no network request with it.
How are the dominant colours chosen?
The pixels are grouped into the number of clusters you ask for, using k-means in the Oklab colour space. Each colour is the average of its group, and the percentage is the share of the sampled pixels in that group.
Why are the colours slightly different from what I see?
Each swatch is the average of many similar pixels, so it can sit between shades. Increase the number of colours to separate shades more finely.
Will I get the same palette every time?
Yes. The method starts from a fixed seed, so the same picture and the same number of colours give the same result.
What does the text colour table show?
For each swatch used as a background, the colour among white, black and the other swatches with the highest WCAG contrast, the exact ratio, and whether it reaches 4.5:1 (AA) and 7:1 (AAA).
Does it handle transparent images?
Pixels that are mostly transparent are ignored, so a logo on a transparent background gives the colours of the logo only.