How does the color extraction work?+
The tool uses k-means clustering — a machine learning algorithm — to group millions of pixels into 8 representative color clusters. Each cluster's centroid becomes one of the extracted colors, sorted by how dominant it is in the image.
Is my image uploaded anywhere?+
No. Everything happens entirely in your browser using the Canvas API. Your image never leaves your device and is not sent to any server.
What image formats are supported?+
JPG, PNG, WebP, GIF, and AVIF are all supported. The tool reads the first frame of animated GIFs.
Why do I get slightly different results each time?+
K-means initialization uses pixel sampling which can vary slightly. For most images the palette will be very consistent across runs.
Can I use the extracted colors in my design tool?+
Yes. Click any swatch to copy its HEX code, use the Copy buttons for RGB or HSL, or use Export CSS to copy all colors as CSS custom properties ready to paste into your stylesheet.