Browse all tools
Photo and videoCategory overviewPrint Size CalculatorDepth of Field CalculatorCrop Factor and Equivalent Focal Length CalculatorND Filter Exposure CalculatorFlicker-Free Shutter Speed CalculatorTimelapse CalculatorVideo File Size and Bitrate CalculatorAspect Ratio Calculator
Image filesCategory overviewImage Resizer and ConverterPNG to JPG ConverterJPG to PNG ConverterWebP to JPG ConverterJPG to WebP ConverterPNG to WebP ConverterHEIC to JPG ConverterEXIF Metadata Remover
Color and screensCategory overviewColor Converter and Contrast CheckerColor Palette Extractor and GeneratorColor Screen GeneratorDead Pixel TestScreen Refresh and Flicker TestBroken Screen Simulator
Everyday toolsCategory overviewUnit ConverterPercentage CalculatorOnline StopwatchExam Timer

More

All guidesAbout

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

HarmonyHue offsetsFeel
Complementary0°, 180°High contrast, energetic
Analogous-30°, 0°, +30°Calm, harmonious
Triadic0°, 120°, 240°Balanced and lively
Split-complementary0°, 150°, 210°Contrast with less tension
Tetradic0°, 90°, 180°, 270°Rich, needs a dominant color
MonochromaticOne hue, varied lightnessCohesive, minimal

Read more in our palette guide.

How to use it

  1. To extract colors, choose a photo and the number of colors you want. Swatches appear with the most common color first.
  2. To build a palette, pick a base color and a harmony.
  3. 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.

More free tools