Image Color Palette Extractor

Upload an image to extract its dominant colors with hex codes. Pick 5, 8, or 10 colors. Runs entirely in your browser — image never leaves your device.

Drop an image, or click to select

JPEG, PNG, WebP, GIF — any format your browser can decode

Color extraction runs locally via HTML canvas getImageData. The image is never uploaded — verifiable in DevTools Network tab.

Frequently asked questions

How is the palette chosen?

We use frequency-based color quantization. Every pixel is binned into one of ~32,768 coarse color buckets (5 bits per channel). The top-N buckets by pixel count are picked, and the final color is the per-channel average of all pixels in each bucket. This reliably surfaces the dominant visual colors.

Why don't I get the exact colors I expect?

Anti-aliasing, JPEG compression, and gradients mean that what looks like a single pure red is actually thousands of slightly different reds. The quantization algorithm picks the bucket centroid — a statistical average — so the result may differ slightly from any single pixel you can see.

Does this work for transparent PNGs?

Yes. Fully-transparent pixels (alpha < 10) are skipped before building the histogram, so they don't pollute the palette with background white or black.

What is the privacy story?

Everything runs in your browser via the HTML canvas getImageData API. The image is never uploaded to any server — you can verify this in DevTools → Network tab during use. The image bytes never leave your device.

Powered by Pyrelo

The all-in-one work dashboard for small teams

Tasks, finance, calendar, timesheet, notes, team chat, file storage, AI assistant, and these tools — all in one place.

See Pyrelo Dashboard

More Image Tools