Image Tools

Image Color Palette Extractor

Pull a copyable color palette out of an image using median-cut quantization.

Pull a representative color palette out of a photo or design, with copyable HEX values, entirely in your browser. Want to convert a color you found into another format? Try the Color Converter.

Your image never leaves your device. The palette is extracted entirely in your browser.

Drag files here

or tap below to choose files from your device

Supports JPEG, PNG, and WebPMaximum 100.0 MB.

Colors are found with median-cut quantization on the image downscaled to at most 200px on its longest side — this gives a representative palette, not an exact count of every unique pixel color in the original file. Fully or mostly transparent areas are excluded.

How it works

Private color palette extraction in your browser

1

Add an image

Choose a JPEG, PNG, or WebP file up to 100 MB.

2

Choose how many colors

Pick between 2 and 12 colors; the palette updates immediately.

3

Copy the result

Copy the HEX values, or as ready-to-use CSS custom properties.

Use cases

When this comes in handy

Build a color scheme from a photo

Turn a photo, logo, or piece of art into a usable set of colors for a design.

Match brand colors

Extract the dominant colors from an existing logo or image to reuse consistently.

Check an image's color balance

See at a glance which colors actually dominate an image.

FAQ

Common questions

Is my image uploaded anywhere?

No. The palette is calculated entirely in your browser.

How are the colors chosen?

With median-cut quantization: the image's colors are repeatedly split into groups along their widest color range, then each group is averaged into one palette color. It's a standard, deterministic method — running it twice on the same image and settings always gives the same result.

Does it find the exact colors in the original file?

No. The image is downscaled before analysis for speed, and each palette color is an average of a group of similar pixels, not necessarily a color that appears verbatim. Treat it as a representative palette, not an exact pixel-level readout.

What happens with transparent areas?

Transparent and mostly-transparent pixels are excluded from the palette entirely, and the tool tells you what share of the image that was.

What if my image has very few colors?

You'll get exactly as many colors as the image actually has — never padded with invented ones to meet the number you chose.

Related Tools