What Image Palette Extractor Does
Extracts 4 to 12 dominant colors from any uploaded image and generates one-click copyable HEX, RGB, HSL, and CSS variable blocks.
Step-by-Step Instructions
- Upload any image or load a sample photo.
- Choose how many swatches to extract (4 to 12).
- Click any swatch to copy its HEX code, or copy the full `:root` CSS variables snippet.
How It Works in Your Browser
Samples pixels across the image inside a Web Worker, clusters colors into 5-bit quantized buckets while enforcing perceptual distance between swatches, and formats CSS custom properties.
Quality Considerations & Common Mistakes
Works reliably on both high-res photos and flat UI graphics.
- Extracting only 4 colors on a busy multi-subject photograph when 8–10 swatches capture secondary accents better.