Color palette from a photo
Upload a photo to get its six main colors, how much of the picture each covers and the paint closest to each.
JPG, PNG, WebP, AVIF or HEIC. The photo never leaves this device.
Drag the numbered dots to pick colors from the photo.
- Hawaiian Breeze Kelly-Moore KM5027-1
- Mauritius Asian Paints 7458
- Glade Benjamin Moore 498
- Glorious Sunset Asian Paints X111
- Electric Benjamin Moore 2015-10
How the palette is found
The photo is scaled to 150 pixels on its long edge and up to 10,000 pixels are grouped with k-means, the same method and limits as the ColorID app. Groups closer than 30 RGB units are merged and colors under 1% of the picture are dropped.
How to use it
- Choose a photo, drop it on the page or paste it with Ctrl or Cmd + V.
- Pick how many colors you want, from 4 to 10. Each column is as wide as its share of the photo.
- Press a HEX code to copy it, in your preferred color format.
- Save the palette with a name, open it in the generator to adjust it, or export it as PNG, CSS or a link.
Sources and further reading
Questions
How are the colors chosen?
The photo is reduced to about 10,000 pixels and grouped with k-means clustering, the same method and limits as the ColorID app. Similar groups are merged and colors under 1% of the photo are dropped.
Why does every color show a paint?
Each color is matched to the nearest of 61,617 paint colors by ΔE2000, so you can go from a photo to paint chips in one step.
Is my photo uploaded?
No. The photo is read in your browser and never leaves your device.