Color palette from image
Pull the colours that make up a photo or artwork into a palette you can copy into CSS, Figma or Canva.
No photo to hand?
How to use it
- Drop an image on the box, paste it, or choose a file.
- Set how many Colours you want, from 3 to 12. The palette updates at once.
- Order them by how much of the image each covers, or from light to dark.
- Copy one code, the HEX list or CSS variables, or download the photo with its palette as a PNG.
How the colours are chosen
The image is sampled and its pixels are grouped into the number of colours you ask for, so that each group is as close as possible to its average colour. The grouping is done in OKLab, a colour space where distances match what the eye sees, so two greens that look alike end up together while a small but distinct accent can keep its own place. The same image and count always give the same palette.
The percentage under each colour is the share of the image it stands for.
Getting a useful palette
Five or six colours describe most photos. Ask for more when the image has small accents you want to keep, fewer for a calm, two-tone look. For one exact pixel colour instead of the image’s overall colours, use the colour picker on this site.
Using it in a design
Copy CSS variables gives a ready :root block with --color-1 to --color-n. The HEX list pastes straight into Figma, Canva or Adobe colour fields one per line. The palette PNG is the photo with its colours underneath, handy for a mood board.
Related tools
Questions people ask
How do I get a colour palette from an image?
Drop the image here and choose how many colours you want. Copy the codes or download the palette as an image.
Can I get HEX codes for each colour?
Yes. Each colour shows its HEX, RGB and HSL values with a copy button, and Copy HEX list copies them all.
Why did a small accent colour not appear?
With few colours, small areas merge into larger ones. Raise the count until the accent gets its own swatch.
Is this palette generator free?
Yes, with no account or watermark.
Is my image uploaded?
No. The palette is calculated in your browser.