Sponsor Your brand here — reach millions of users. Become a sponsor →
← All tools

Color Picker from Image

Upload an image and pull out its main colours as hex codes. Copy a swatch with one click, or download the palette as TXT, CSS or JSON. Free and private.

Your files stay on this device — 0 bytes uploaded

Get the hex codes out of a picture

Drop in a photo, a screenshot, a logo or a moodboard and this tool reads the pixels, groups the ones that are close together, and gives you the colours that actually dominate the image - not one random pixel.

Each swatch shows its hex code and copies to your clipboard when you click it. You can also download the palette as a plain list, as CSS custom properties ready to paste into a stylesheet, or as JSON for a design token file.

How the colours are chosen

The image is sampled down, near-transparent pixels are ignored, and the remaining colours are bucketed and ranked by how much of the image they cover. Colours too similar to one already chosen are skipped, so you get a usable spread rather than six shades of the same blue.

Frequently asked questions

Can I pick the colour of one exact spot?

This tool returns the dominant palette rather than a single pixel. To target one area, crop or screenshot just that part first and run it through.

What is the percentage next to each colour?

It is roughly how much of the image that colour and its close neighbours cover, which tells you which colour is the main one and which is an accent.

Can I get RGB values too?

Yes. Hover a swatch to see its RGB value, and the TXT and JSON downloads include both hex and RGB.

Does it work with screenshots and logos?

Yes, and those usually give the cleanest results because they contain flat areas of colour rather than photographic gradients.

Is my image uploaded?

No. The pixels are read inside your browser and nothing is sent to a server.

More free tools