Color Palette Extractor

Extract the dominant colors from any image in your browser. 5–8 swatches, hex codes, copy-paste CSS variables. Files never leave your device.

🔒 Files never leave your browser — no upload, no server, no tracking.
No image yet.

    
  

What is this for?

This tool reads an image, samples a few thousand pixels, and groups them into 3–10 dominant colour buckets using a hand-rolled median-cut quantization algorithm. The result is a small set of representative hex colours you can use as the seed of a design system, the basis of a moodboard, or a quick way to lift the brand colours out of someone else's logo. Everything runs in your browser; the image is never uploaded.

When to use it

How median-cut works

  1. Down-sample the image to keep the pixel count manageable.
  2. Find the longest axis of the pixel cloud (R, G, or B range).
  3. Sort along that axis, split at the median.
  4. Recurse into each half until you have the number of buckets you asked for.
  5. Return the average colour of each bucket.

Common gotchas