Extract the Dominant Colors

Drop an image to pull a color palette from it. Click a color to copy its hex code.

Drop an image here or click to choose it. JPEG, PNG, WebP, GIF, BMP.

Dominant Colors of an Image is a free tool that runs entirely in your browser, with no data ever sent to a server. Extract a color palette and copy its hex codes.

How the palette is calculated

The image is downscaled to a small analysis size, then its pixels are grouped by color similarity using the median-cut method: at each step, the group with the widest hue range is split in two, until the requested number of colors is reached. It's the same family of method used by most palette extractors.

What it's for

What this tool does not do

This tool does not read HEIC photos (the default on some iPhones): convert them to JPEG from the device first. On a PNG, compression changes the format rather than truly reducing the size, since the browser cannot produce a reduced-palette PNG.

Frequently asked questions

Why does the color obtained slightly differ from what I see?

Each color shown is an average of a whole group of nearby pixels, not the color of one exact pixel. On a gradient area, the average may therefore look a bit different from any single point taken in isolation.

Clicking a color doesn't copy anything?

The code is copied to your browser's clipboard; a confirmation message briefly appears. Some browsers ask for permission the first time.

Are my files sent to a server?

No: processing happens entirely in your browser, on your device. No file is ever transmitted to a server, at any point.