COLOR PALETTE
Extract dominant colors from any image — hex, RGB, HSL, and Tailwind values — 100% in your browser.
Select a swatch to adjust
Palette
Upload an image to extract its color palette
Click a swatch to see details
Click two swatches to compare contrast
Select a color to generate harmonies
No saved palettes yet.
Frequently Asked Questions
How does the Color Palette Extractor work?
How many colors can I extract?
Can I lock specific colors and re-extract?
What export formats are available?
Is my uploaded image stored or sent anywhere?
What image formats are supported?
How to Use
Upload an Image
Drop or paste any image onto the upload zone. The tool samples pixels at a reduced resolution for fast K-means clustering — larger images are scaled down to 150px on the longest side before processing.
Choose Color Count
Select 5, 10, or 15 dominant colors. More colors give finer detail but may include similar shades. The K-means++ algorithm initializes centroids for better palette separation.
Lock & Refine
Lock swatches you want to keep, then re-extract with a different count. Locked colors are preserved in the new palette.
Copy or Export
Click any swatch to copy its hex value. Use the export button to download the palette as a hex list, CSS variables, Tailwind config, or JSON.
About the Color Palette Extractor
The Color Palette Extractor is a free online tool that analyzes any image to extract its most dominant colors. Using a K-means clustering algorithm running entirely in your browser, it identifies the key hues that define your image's look and feel.
Upload a photo for travel color inspiration, a brand logo for competitor research, or any digital artwork — the tool gives you hex, RGB, and HSL values for 5, 10, or 15 colors. Lock swatches you love and re-extract at a different count without losing your picks.
Export your palette as a plain hex list, CSS custom properties ready for your stylesheet, a Tailwind CSS v4 configuration snippet, or structured JSON for use in design tools and automation pipelines.
100% private and free. The image is sampled in-browser at a reduced resolution for fast clustering — no pixel data ever leaves your device. No sign-up, no uploads, no tracking.