Color Palette Extractor

Pull the dominant colors out of an image and copy them as a palette.

Tool Panel

Loading tool...
About Color Palette Extractor

Pulls the dominant colours out with histogram quantisation and near-colour merging, which keeps the result deterministic — the same image always yields the same palette.

  • 1

    The algorithm is histogram quantisation plus near-colour merging: each channel keeps its high 4 bits into at most 4096 buckets, ranked by hits, then merged by a perceptually weighted distance (redmean).

  • 2

    That makes the result deterministic — the same image always yields the same palette, unlike k-means with its random initialisation, and it can be verified independently with solid-colour test images.

  • 3

    Fully transparent pixels are skipped and large images are sampled at a fixed stride, so the reported share is a sampled ratio rather than an exact per-pixel count.

Related tools

View all
Color Picker
Design Tools

Color Picker

Pick a colour and read off its HEX, RGB and HSL values.

Design Tools
Contrast Checker
Design Tools

Contrast Checker

Check foreground and background contrast against accessibility thresholds.

Design Tools
Gradient Generator
Design Tools

Gradient Generator

Build CSS linear and radial gradients visually, then copy the code.

Design Tools
Box Shadow Generator
Design Tools

Box Shadow Generator

Tune a box shadow visually and copy the CSS.

Design Tools
Unit Converter
Design Tools

Unit Converter

Convert physical units across length, weight, volume and more.

Design Tools
Bytes Converter
Design Tools

Bytes Converter

Convert between bytes, KB, MB, GB and TB.

Design Tools