Colors from Image
Find the main colors of a picture, with HEX and share. Runs on your device.
or drop it anywhere on this page
PNG, JPG, WebP, AVIF, GIF and more, up to 26.2 MB
You can also paste it (⌘V / Ctrl+V).
- InstantNo upload, no queue. It runs as you drop.
- Works offlineTurn Wi-Fi off and try it.
- Keep goingPass the result to the next tool. No re-upload.
How the main colours are pulled from a picture
What it’s for
Drop in a photo or a logo and get its main colours as a palette, each with its share of the picture. Copy them as CSS or text, or send them to the palette and contrast tools.
How it works
The picture is shrunk to at most 200 pixels on its longest side. The tool then groups pixels of similar colour and reports the middle of each group. A group that covers more of the picture has a bigger share. You choose how many colours you want, from 4 to 12, and the default is 6.
Everything happens in your browser. The picture is never uploaded.
By default the tool ignores extremes: pixels that are nearly white or nearly black. A white page background or a black border would otherwise take the top spots, and the colours you care about would be pushed down the list.
Try this
- Drop a photo with a plain background
Drop a product photo on a white background. With "ignore extremes" on, the white is left out, so the palette is the colours of the product. Shares add up to 100 percent of what is counted.
- Turn off ignore extremes
Turn the option off for a picture that really is mostly white or black, such as a monochrome logo. The white or black is then listed, with its true share of the picture.
- Change the number of colours
Move the count to 4 for a short list of the biggest groups, or to 12 for fine detail. A picture with two flat colours still gives two colours, however high you set the count.
Watch out
- A palette is a summary.It is the average of groups, so a colour may not appear exactly in the picture. Use the Name or Contrast tools to check it.
- Small details disappear.A small bright accent, such as a red button on a big photo, may fall into a bigger group of similar colours.
Words to know
- Palette
- A short list of colours that stand for a larger picture.
- Share
- The part of the counted pixels that fall in one colour group, as a percentage.
- Ignore extremes
- Leave out near-white and near-black pixels before the groups are made.
Your files stay on your computer. Dad promised.