Pull the dominant colors out of any image and get them as HEX swatches with share percentages.
100% Local
How to Use Image Color Palette Extractor
- Upload an image โ click, drag or paste.
- Set the number of colors โ anywhere from 2 to 16.
- Toggle background ignore โ when on, near-white and fully transparent pixels are skipped so the palette reflects the subject, not the backdrop.
- Extract โ runs automatically on upload; press the button to re-run.
- Copy or download โ click any swatch's HEX to copy it, or download the palette as a PNG strip.
How the palette is computed
Each image is downsampled to at most 200ร200 pixels for speed, then every remaining pixel is fed into a median-cut algorithm: pixels are recursively split along the channel with the widest range, at its median, until the requested number of color buckets is reached. Each bucket is averaged into one color and ranked by how many pixels it represents.
Features
- Extract 2โ16 dominant colors using the median-cut algorithm.
- Optional background ignore โ skips near-white and transparent pixels.
- HEX value and pixel percentage shown under each swatch.
- Click a swatch to copy its HEX; download the whole palette as a PNG strip.
- Large images are downsampled first so extraction stays instant.
- All processing runs locally in your browser. Your data is not uploaded to any server.
Related Tools