Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Image

Extract Colour Palette

Sample an image and produce a palette of representative colours using median-cut, k-means or most-frequent quantization. Pixels are analysed in your browser only.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Drop files here, or browse

Accepts: image/*

Files stay on your device.

Ctrl+V to paste an image

    Options

    Median-cut balances coverage; k-means groups similar colours; most-frequent keeps the most common buckets.

    Drop files above to begin

    Your files are processed on this device and never uploaded.

    How it works

    What comes out of the sampler

    The tool decodes an image in your browser, then quantizes up to ten thousand sampled pixels into a palette of hex colours. A single image returns a colour-swatch render of its palette plus the dominant colour and an appearance guess of mostly light or mostly dark; several images become one table listing each file, its dominant colour and the full palette.

    A real design use

    Point it at a brand asset or a screenshot and read the dominant colour back to build a theme, pick an accent, or check how a design reads at a glance. Because it works on a local canvas, it is also a safe way to sample artwork you are not allowed to upload.

    Choosing an algorithm

    Median-cut splits the colour box along its widest range to balance coverage. K-means groups similar colours into clusters and, thanks to a fixed seed, returns a stable palette across runs. Most-frequent simply keeps the most common colour buckets. All three honour the number of colours option, clamped between 2 and 16.

    What is ignored and how large it can go

    Pixels with an alpha below 32 are discarded so transparency does not skew the palette, and a fully transparent image reports no opaque pixels. The sample is capped at ten thousand pixels, so very large files are read at a bounded size rather than decoding unbounded bitmaps.

    All analysis stays on the page

    Pixels are read from a canvas in this tab and never uploaded. Everything runs offline once loaded, so a sensitive image can be sampled without any of its data leaving the device.

    Questions

    Are fully transparent pixels used?

    No. Pixels with an alpha below 32 are ignored so they do not skew the palette.

    Is my image uploaded?

    No. Sampling happens on a canvas in your browser.

    Can I compare several images?

    Yes. Select multiple files and each image is listed with its dominant colour and full palette.

    See category