⚡ 100% Client-Side🎨 Top-5 K-Means Palette📋 1-Click HEX Copy

Story & Post Palette Extractor

Extract the top 5 dominant colors from any photo with in-browser k-means quantization. One-click HEX/RGB copy, black/white contrast ratings, and a downloadable 1080×1350 palette moodboard card. 100% free and private.

Drop any photo to extract its palette

K-means color quantization runs 100% in your browser • Up to 5 dominant colors • Fully transparent images are rejected with a hint

Next in your workflow:
Simple Steps

How to Use the Palette Extractor

01Any JPG, PNG, WebP

Upload any image

Drop a photo, screenshot, or brand graphic — pixel sampling runs entirely on-device.

021-Click Copy

Copy your brand colors

Tap any of the 5 swatch cards to copy its HEX or RGB value instantly. Contrast badges show readability on black vs. white.

03PNG Moodboard

Export the moodboard

Download a shareable 1080×1350 palette moodboard PNG with your source photo and all five colors.

FAQ

Palette Extractor FAQ

How are the dominant colors calculated?+
The tool downscales your image on a canvas, samples thousands of pixels, and runs k-means clustering (8 iterations over 5 centroids) to find the five most representative colors — the same family of technique used by professional palette tools.
What do the contrast badges mean?+
Each swatch shows its WCAG contrast ratio against pure black and pure white, plus a rating: AA (4.5+, great for text), AA-Lg (3.0+, fine for large text and graphics), or Low (decorative use only).
Can I use these colors for my Instagram theme?+
Absolutely — that is the main use case. Copy the HEX codes into your story text colors, highlight covers, and Canva templates to keep a consistent feed aesthetic.
Are my images uploaded anywhere?+
No. Pixel sampling and quantization run 100% locally via the Canvas API. Nothing ever leaves your browser.