How to get colors from an image
- Drop a photo onto the box, paste it with Ctrl+V, or click to choose a file.
- The main colors appear on the right, ordered from most to least common. Use the slider to get more or fewer colors.
- To grab one exact color, click on the image. Picked colors are added to a list below the palette.
- Click any HEX code to copy it.
To take the whole palette, use Copy HEX list or Copy CSS variables, or open it in the palette generator to adjust and extend it.
Is my image uploaded?
No. The image is read and analysed by your own browser. Nothing is sent to a server, so it is safe to use with private photos and unreleased designs.
How the palette is chosen
The tool uses median cut, a classic color quantization method. It puts every pixel into one group, then repeatedly splits the group with the widest color range in half, until it has as many groups as you asked for. A few rounds of k-means then refine the result: every pixel joins the palette color it is closest to, and each color moves to the average of its pixels. The share of pixels in each group gives the percentage.
Ideas for using an image palette
- Match a brand: pull the exact colors from a logo or product photo.
- Design around a photo: take a website's colors from its main hero image so everything feels connected.
- Mood boards: collect palettes from photos of places or artworks you like.
- Choose an accent: use a common color for backgrounds and a rare, vivid one for buttons.
FAQ
Why doesn't the palette include a small detail I can see?
Palette colors represent large areas. A small but striking detail, like a red flower, may be merged into a bigger group. Raise the number of colors or click the detail to pick it directly.
Can I use this on a screenshot of a website?
Yes. Take a screenshot, paste it here, and click any element to get its exact color.
Why is the picked color slightly different from the original design?
JPG compression and screen color settings change pixels a little. For exact brand colors, use a PNG export or the original design file when you can.