lab980 / palette

Pull the colours out of an image.

Drop in a photo, screenshot or logo. You get its dominant colours as hex, RGB, HSL, CSS custom properties and a Tailwind block — ready to paste. Extraction happens in this tab: the image never leaves your machine.

Drop an image here

or , or paste one from the clipboard

PNG, JPEG, WebP, GIF, AVIF or SVG · up to 25 MB

How it works

Quantization, not sampling

The image is scaled to 256px on its long edge, then reduced with a modified median cut over a 5-bit histogram and refined with k-means in CIE Lab. That is why you get the colours the image is made of, rather than whatever happened to sit under a grid of sample points.

Roles, not just a list

Each colour is scored against the vibrant/muted × light/dark targets, so the swatch you actually want for a heading or a background is labelled rather than left for you to eyeball.

Nothing is uploaded

There is no server side. The page is static files; the pixels are read with the Canvas API in your own browser and are gone when you close the tab.