Image Color Palette Extractor
Extract dominant color palettes from any image with HEX/RGB/HSL values, WCAG contrast, and CSS tokens.
Extract dominant colors with HEX, RGB, HSL, WCAG contrast, and CSS variables
How to use
- 01.
Drop a photo, brand artwork, or UI screenshot — or click Load Sample Image.
- 02.
Adjust the swatch count (3 to 12 colors) to refine palette granularity.
- 03.
Click any swatch to copy its HEX code, or export the full palette as CSS variables or JSON.
Turn visual references into usable CSS design tokens
Designers and front-end engineers often pull color moods from product photography or artwork when crafting landing pages and themes.
ArjenSoft samples pixels locally inside a Web Worker using bucketed quantization and diversity filtering, then calculates exact HEX, RGB, HSL, share percentages, and recommended white/dark text contrast for every swatch.
Limits & privacy
- Sampling runs locally in a Web Worker on a bounded downsampled buffer for instant results.
- Includes automatic WCAG relative-luminance text contrast recommendations.
- No artwork or confidential mockups leave your browser.
Frequently asked questions
How are dominant colors selected from complex photos?
Pixels are quantized into color buckets, ranked by visual coverage, and filtered by Euclidean RGB distance so you get distinct swatches rather than five nearly identical shades.
Can I export the palette directly into a stylesheet?
Yes. Click Copy CSS Variables to get a ready-to-use :root block with --palette-1 through --palette-N.