Skip to content
Tooletto

Extract Color Palette From a Photo

A preset of Color Palette Extractor

Build a color scheme from a photograph. Preset to six colors, which is enough to capture a photo's range without producing near-duplicates that are hard to tell apart in a design.

  • Files never leave your device
  • Free, no signup
  • No watermarks
  • Works offline once loaded
Loading tool…

How to color palette extractor

  1. 1

    Add an image

    Drop a photo, screenshot or design in — or paste from the clipboard.

  2. 2

    Choose how many colors

    Five or six is usually the sweet spot for a usable palette.

  3. 3

    Copy the values

    Each swatch gives HEX and RGB, plus how much of the image it covers.

Building a theme from a photograph specifically

Extracting a palette from a photograph is a different job than extracting one from a logo or a flat design, because a photo carries continuous lighting and shadow rather than a small number of deliberate flat colors — the same red shirt can contribute a dozen subtly different swatches across its lit and shadowed sides before quantisation groups them back together. Six colors is enough headroom to capture that range — a couple of dominant tones, a supporting color, and one or two accents pulled from smaller but visually distinct areas — without the palette collapsing into six near-identical shades of the same hue.

A palette built this way from, say, a landscape or product photo tends to work well as the seed for a website theme or a design mockup: the most common swatch (usually the largest area, such as sky or backdrop) is a natural background or muted-surface color, and the smaller, higher-coverage-percentage swatches are natural candidates for accents specifically because the algorithm already favoured colors that are visually distinct from the rest of the image.

Worth checking the coverage percentage before committing a swatch to a specific role in a design: a color that covers 45% of the source photo will read as overwhelming if used as a small accent, while a color covering only 3% will disappear if used as a large background fill. Matching a swatch's coverage share to a role of similar visual weight in the new design usually produces a more balanced result than picking purely by which color looks nicest in isolation.

Frequently asked questions

How are the colors chosen?

By median-cut quantisation — the image's colors are repeatedly split into boxes along their widest axis until the requested number of groups remain, and each group's weighted average becomes a swatch. It is the same algorithm GIF palettes use, and it favours colors by both how distinct and how common they are.

Why is the palette different from what I see?

Because the eye is drawn to the *subject*, while the algorithm counts pixels. A photo of a red car on grass returns mostly greens, since that is genuinely most of the image. Cropping to the part you care about gives the palette you expected.

What does the percentage mean?

The share of pixels assigned to that swatch. It is a good proxy for visual weight — a color covering 40% of the image will dominate any design built from the palette, so it usually belongs as a background rather than an accent.

Are transparent areas included?

No. Fully transparent pixels are excluded, so a logo on a transparent background returns the logo's colors rather than being dragged toward black.