FREE TOOL · 100% LOCAL
Extract Colors From Any Image
Drop, paste, or select an image and instantly get its dominant palette via perceptually accurate k-means clustering in OKLab. Pick individual pixels for branding work. Nothing is uploaded — the entire pipeline runs in your browser.
Your image stays on your device. Always.
Every other "image color extractor" we tested in 2026 either uploads your photo to a third-party server or runs it through a captcha gate. We do neither. The image you drop is decoded into a canvas in your browser, sampled and clustered locally, then discarded when you close the tab. There is no upload, no server, no analytics on the image data, no log. If you can run this page offline after the first load, you can extract colors offline.
How it works
k-means clustering in OKLab — what most tools get wrong
Most image palette tools take a "naïve average" approach: bucket pixels into RGB bins, return the most common buckets. The result is muddy because RGB distance does not match how human eyes perceive color similarity. We do it differently.
Sample in OKLab
Pixels are converted into OKLab — a perceptually uniform color space — before clustering. Distances in OKLab match what your eye calls "similar".
k-means++ seeding
We seed cluster centers with k-means++ — picking initial centers spread across the color space — so the result is stable and rarely lands in a poor local minimum.
Convert back to sRGB
Centroids are converted back to sRGB / hex for display. You see colors that actually appear in the image, weighted by perceptual frequency rather than raw RGB volume.
Tip
Dominant palette vs picked pixel — they are different tools
A dominant-color palette tells you what the image is mostly made of. A picked pixel tells you the exact color of one point. Most people confuse these and ask "why is the brand color not in the dominant palette?"
If your goal is to build a brand palette from a photograph, start with the dominant palette and accept that small but visually important colors (a logo accent, a single piece of fruit, an eye color) may not appear. Use the pixel picker to capture those specific colors and add them manually.
If your goal is to identify the exact color of a UI screenshot or a print proof, use the pixel picker directly. Dominant clustering is the wrong tool — it will average away the value you want.
Frequently asked questions
Is this image color extractor free?
Does my image leave my device?
How many colors should I extract?
Why does the palette change slightly each time I re-roll?
What image formats are supported?
Can I extract from a URL or paste an image?
Why OKLab instead of RGB clustering?
How is the picked pixel different from a swatch?
Pair with our other color tools
Color Converter
Convert any extracted color into HSL, OKLCH, or platform-specific code.
Contrast Checker
Validate body / heading combinations from your extracted palette against WCAG and APCA.
Gradient Generator
Pull two stop colors from the extracted palette into a perceptually clean OKLCH gradient.