No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

Image Tools · Updated November 8, 2026 · Reviewed by FormatFlow Editorial

Color Palette Extractor

You can extract 5 to 8 dominant colours from a JPG, PNG or WebP image in your browser using median-cut sampling, see each swatch with its HEX, RGB and share, and copy the palette as CSS variables or JSON. The image is never uploaded.

Runs in your browserFree · No sign-up · No watermark
Image → Colour paletteRuns in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

Key facts

Category
Image Tools
Processing
In your browser — nothing is uploaded
Input formats
JPG · PNG · WebP
Output format
CSS/JSON
Maximum size
25 MB per file
Requirements
Chrome, Edge, Firefox or Safari on desktop or mobile · No installation or account; sampling and quantisation run on your device
Price
Free, no account, no watermark
Last updated
Nov 8, 2026

SummaryColor Palette Extractor is a free online image tools tool. You can extract 5 to 8 dominant colours from a JPG, PNG or WebP image in your browser using median-cut sampling, see each swatch with its HEX, RGB and share, and copy the palette as CSS variables or JSON. The image is never uploaded. A palette pulled from a real photo, illustration or brand asset is often more useful than a generic preset: it carries the actual light, shadow and accent colours of the image. This tool samples the picture, groups similar pixels with median cut and returns a compact set of dominant colours instead of thousands of near-duplicates. It runs in your browser — nothing is uploaded. It accepts JPG, PNG, WebP and produces CSS/JSON. The maximum size is 25 mb per file.

At a glance

Works with
Image → Colour palette
Processing
In your browser
Max size
25 MB per file
Price
Free, no account
Updated
November 8, 2026
All Image Tools

About Color Palette Extractor

A palette pulled from a real photo, illustration or brand asset is often more useful than a generic preset: it carries the actual light, shadow and accent colours of the image. This tool samples the picture, groups similar pixels with median cut and returns a compact set of dominant colours instead of thousands of near-duplicates.

Each swatch reports HEX, RGB and the share of sampled pixels it represents, so you can tell a background colour from a small accent. Copy individual values, or take the whole palette as CSS custom properties or JSON for a design system. Sampling and quantisation run in the browser tab, and the image is never uploaded.

What this tool does

The details that matter when you use Color Palette Extractor for real work.
  • Median-cut palette

    Samples the image and splits colour space along the widest channel repeatedly, which keeps the palette representative of the actual image.

  • 5 to 8 colours

    Choose how many palette entries you need; the same image yields a compact five-colour set or a wider eight-colour exploration.

  • Share of pixels

    Every swatch shows the percentage of sampled pixels it covers, so dominant backgrounds are distinguishable from accents.

  • Copy-ready values

    Copy each HEX or RGB value with one click, or take the whole palette as CSS variables or JSON.

  • Transparency-aware sampling

    Near-transparent pixels are ignored so cut-out PNGs do not produce colour from invisible areas.

  • Local processing

    The image is decoded and sampled with the Canvas API in the browser; it is never uploaded.

How to use Color Palette Extractor

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Add an image

    Drop a JPG, PNG or WebP file up to 25 MB; the palette is extracted immediately.

  2. 02

    Choose the colour count

    Start with six colours, then move to five for a compact palette or eight for more variety.

  3. 03

    Review the swatches

    Check HEX, RGB and the share of each colour; large shares usually indicate background or base colours.

  4. 04

    Copy what you need

    Copy an individual colour, or take the CSS variables or JSON block for your design tool.

  5. 05

    Test the palette

    Check contrast and legibility for text and UI use; extracted colours are a starting point, not a finished accessible palette.

How this tool works

Works with
Image → Colour palette
Processing
Client-side, in your browser. Nothing is uploaded.
Maximum size
25 MB per file
Requirements
Chrome, Edge, Firefox or Safari on desktop or mobile · No installation or account; sampling and quantisation run on your device

Limitations worth knowing

  • Median cut is an approximation: buckets are averaged, so a specific brand colour may come out shifted.
  • The share percentages come from a downscaled sample, not an exact full-resolution pixel census.
  • Near-transparent pixels are ignored, and very small accents may not survive sampling.
  • The palette does not guarantee contrast or accessibility; test colour pairs before using them in an interface.

Privacy and file handling

Your image is decoded and sampled in this browser tab with the Canvas API. It is never uploaded, no copy is stored on a server, and no network request carries the file; only the palette values are produced locally.

Read the full privacy policy

Color Palette Extractor FAQ

Short, direct answers to the questions people ask before using this tool.
How are the dominant colours chosen?
The tool samples pixels from a scaled-down copy of the image and applies median cut: it repeatedly splits the colour set along the channel with the widest range and averages each bucket. That keeps the result close to the image's actual colours without clustering thousands of near-identical shades.
Why do two similar colours both appear?
Median cut divides by colour range, not by visual grouping, so gradients and textured areas can produce adjacent buckets. Lower the colour count or pick a flatter image if you want more separation between swatches.
How is the percentage share calculated?
It is the share of sampled opaque pixels in each final bucket, rounded to one decimal. It reflects the downscaled sample, not the full-resolution image, so treat it as a strong indication rather than an exact census.
Does transparency affect the palette?
Pixels below about half opacity are skipped so invisible or nearly invisible colour does not skew the result. Fully opaque images are sampled as-is.
Can I extract an exact brand colour?
Median cut gives averaged buckets, so a brand colour may come out slightly shifted. For an exact pixel value, use the image color picker instead; this tool is for palette exploration.
What formats can I copy?
HEX and RGB for each swatch, plus the full palette as CSS custom properties (--color-1, --color-2, and so on) or as JSON with hex, rgb and share values.
Is the extracted palette accessible?
Not automatically. Extracted colours describe the image, not contrast requirements. Check text and background pairs against WCAG contrast guidance before shipping them in an interface.
Is my image uploaded to a server?
No. The file is decoded with the browser's image APIs, sampled from a canvas and grouped in the page. No copy is sent to a server and no network request carries the image.

Background reading

Format guides that explain the trade-offs behind Color Palette Extractor.