Color Palette Extractor

Pull the dominant colors from any image — right in your browser.

100% in your browser — nothing uploaded

or drag & drop it here, or paste it from your clipboard (Ctrl+V)

Drop, pick, or paste any image and get its dominant colors in seconds. The tool downscales the picture, samples its pixels, and runs median-cut quantization — the classic algorithm behind GIF encoders — to find the handful of colors that actually define the image, ordered by how much of the picture each one covers. Choose 3 to 10 colors, click any swatch to copy its hex code, or copy the whole list at once.

It’s built for designers matching a palette to a brand photo, developers theming a UI around artwork, and anyone who wants CSS-ready hex values from a screenshot. Unlike most palette generators, your image is never uploaded: decoding, sampling, and quantization all happen on a canvas inside your browser, so mockups under NDA, client photos, and unreleased artwork stay on your device.

FAQ

Which image formats are supported?

Anything your browser can decode: PNG, JPG, WebP, GIF (first frame), SVG, and AVIF in most modern browsers. HEIC photos from iPhones are the notable exception — browsers can’t decode HEIC, so convert those to JPG first.

How are the dominant colors calculated?

The image is downscaled to about 100 pixels on its longest side, then the pixels are clustered with median-cut quantization: the color space is split repeatedly along its widest axis and each cluster is averaged. Fully transparent pixels are ignored, and swatches are ordered by how many pixels each cluster contains.

Is my image uploaded anywhere?

No. The file is read with the browser’s own image decoder and processed on a local canvas. Nothing leaves your device — the tool even works offline once the page has loaded.