Color Palette from Image

Pull the dominant colors as hex.

Drop an image and the tool pulls its dominant colors into a palette of hex codes you can copy one by one or all at once. It shrinks the picture to about 100 pixels, then runs a median-cut pass that groups similar pixels and averages each group into one representative color. Pick 5, 6 or 8 swatches. Nothing is uploaded, so it works offline.

How it works

The image is drawn onto a small offscreen canvas, roughly 100 pixels on its longest edge, which is enough to judge the color mix without reading millions of pixels. Median cut then sorts those pixels into buckets by color and splits the widest bucket again and again until it has the number of colors you asked for. Each bucket is averaged into one swatch. It all runs in the browser, with no upload.

Choosing a palette size

Colors Best when
5 A tight brand set or a slide theme with room to breathe
6 A balanced default that suits most photos and screenshots
8 A fuller scheme for illustrations and busy images with many tones

Related

Drop an image here

or click to choose a file. Nothing leaves your browser.

Questions people ask

How does it decide which colors are dominant?

It shrinks the image to about 100 pixels, then runs a median-cut pass. That starts with every pixel in one group, repeatedly splits the group that spans the widest color range, and finally averages each group into one representative color. The result is a handful of colors that stand for the whole picture rather than random single pixels.

Can I change how many colors it pulls?

Yes. Pick 5, 6 or 8 with the buttons above the swatches and the palette rebuilds instantly from the same image. Fewer colors give you a tighter set that is easier to use as a theme; more colors capture subtle tones in detailed images. The image is only read once, so switching counts is fast.

Is my photo uploaded to build the palette?

No. The image is decoded onto a canvas in your browser and all pixel reading and grouping happen on your device, so it works with the network off. Nothing is sent to a server, and the palette disappears when you close the tab.