How to extract colors from an image
- Upload an image — drag & drop or click to browse. Any JPG, PNG, WebP, or GIF works.
- Choose number of colors — 3 for minimal, 5–6 for balanced, 8–10 for detailed palettes.
- Click Extract Palette — K-means clustering finds dominant colors in milliseconds.
- Copy & export — click any swatch to copy HEX, or export as CSS variables, JSON, or PNG strip.
Why this palette extractor?
Unlike server-side tools, everything runs locally via Canvas API and a lightweight K-means implementation. Your photos never leave your device — perfect for client work, unreleased designs, or private images. The algorithm downsamples intelligently for speed while preserving color accuracy, then sorts by dominance, luminance, or hue.
More Image Tools
Looking for another image utility? Explore related zenlyta tools: