How to Extract Dominant Color Palettes & Export CSS Custom Properties
Turn photographs, artwork, or UI inspirations into balanced 4-to-12-color palettes with one-click `:root` CSS variables.
Primary Browser Tool
Image Palette Extractor
Extract up to 12 dominant colors from any photograph or illustration and export ready-to-paste CSS custom properties.
From Photo Moodboard to CSS Theme Tokens
Upload any image to extract 4 to 12 visually distinct dominant tones computed privately inside a Web Worker. Copy individual HEX/RGB/HSL swatches or export the entire palette formatted as ready-to-paste CSS `--palette-color-n` variables.
Practical Examples
Landing Page Palette Inspiration
Extract 6 distinct shades from an architectural photograph to seed hero accents, surface tints, and neutral ink tones.
Common Mistakes & Honest Limitations
Mistakes to Avoid
- Applying extracted muted photo midtones directly as body text without testing WCAG contrast against white backgrounds.
Technical Limitations
- Ignores transparent pixels (`alpha < 128`) so transparent PNG cutouts report only true subject colors.