Color Palette Extractor and Generator
Extract the dominant colors from a photo, or build harmonious palettes from any base color. Everything runs in your browser.
Extract colors from a photo
Build a palette from a color
Click any swatch to copy its HEX code.
About this tool
The extractor shrinks your photo, groups similar pixels with a clustering method called k-means and lists the most common colors first. The generator turns a base color into classic color harmonies using the color wheel. Nothing is uploaded.
Color harmonies
| Harmony | Hue offsets | Feel |
|---|---|---|
| Complementary | 0°, 180° | High contrast, energetic |
| Analogous | -30°, 0°, +30° | Calm, harmonious |
| Triadic | 0°, 120°, 240° | Balanced and lively |
| Split-complementary | 0°, 150°, 210° | Contrast with less tension |
| Tetradic | 0°, 90°, 180°, 270° | Rich, needs a dominant color |
| Monochromatic | One hue, varied lightness | Cohesive, minimal |
Read more in our palette guide.
How to use it
- To extract colors, choose a photo and the number of colors you want. Swatches appear with the most common color first.
- To build a palette, pick a base color and a harmony.
- Click any swatch to copy its HEX code.
Using a palette well
- Aim for balance. A common guideline is 60% for a dominant color, 30% for a secondary color and 10% for an accent.
- Limit the count. Three to five colors are enough for most designs, plus neutrals.
- Check contrast. Test text and background pairs with the Color Converter and Contrast Checker.
- Start from a photograph. Colors extracted from your own picture usually feel natural together, which suits a portfolio or presentation.
Common mistakes
- Treating the most common color as the most important one. A small, vivid detail may be better as the accent.
- Using every extracted swatch. Choose a few and discard the rest.
- Picking a harmony without testing it on the real page.
- Judging colors on an uncalibrated screen. Different displays show them differently.
Questions
How does the extractor pick colors?
It groups all pixels into a few clusters and reports the average color of each, sorted by how many pixels belong to it.
Which harmony should I use?
Analogous palettes feel calm, complementary palettes feel energetic, and monochromatic palettes feel cohesive and minimal.
Why do my extracted colors look dull?
Large areas of sky, shadow or background dominate a photo and are often muted. Increase the number of colors to reach the more vivid ones.
Can I use the colors in a commercial project?
Individual color values are generally free to use, but brand colors can be protected as part of a trademark. Check the rights to the source photograph if you reproduce it.