Extract a colour palette from an image

Drop an image to find up to six of its main colours, or use the screen picker in a supported browser to see the HEX and RGB codes for one pixel.

Pick a colour from your screen

Select Pick screen colour, then click the pixel you want. The readout shows its HEX and RGB values without needing an image file. Press Escape to cancel.

Screen picking needs a browser with a built-in eyedropper. If yours does not have one, you can still extract a palette from an image.

Find colours you can use again

Pull the main colours from a photo for a slide deck, or get hex codes from a logo when you do not have the original style guide. The tool reads your image without changing it.

Drop a JPG, PNG or WebP to get started. Your browser may support other image types too. If it cannot open your image here, try converting it to PNG first.

How the palette is selected

The tool samples a smaller copy of the image and groups similar pixels. Colours that cover more of the image tend to appear first. Transparent pixels do not count as a background colour.

A small detail can get missed beside a large patch of colour. Crop to the area you care about first if you want a palette from that part of the image.

Quick questions

Why did I get fewer than six colours?

A flat image may have fewer than six distinct colour groups. The tool only shows groups it finds.

Does the tool upload my image?

No. It samples the pixels in your browser, and the text file is created on your device.

Is this an exact match to my brand colour?

Not always. The swatches are averages of similar sampled pixels. Use your original brand specifications where an exact match matters.

Converters

Start here if your files still need converting before you use this tool.

Guides