Image Palette Extractor
Pull dominant color palettes from images
Give it a photograph, a logo, or a moodboard image and it returns the ten colours that actually define the picture, ranked by how much of the frame each one covers. The method matters: the image is sampled at up to 200 pixels on its longest edge, every pixel's colour channels are reduced to four bits each and bucketed, and each bucket is averaged back to a full-precision hex. That averaging is what separates a real palette from a list of near-identical swatches, and the ranking by pixel count puts the dominant colours first rather than the most saturated ones. Transparent pixels are excluded from the count, which keeps a logo's invisible background from appearing as a colour. Each swatch copies on click, and the block below is a ready-made set of CSS custom properties.
Extract the dominant colors from any photo or logo to build a matching palette, with HEX codes and copyable CSS variables. Ideal for design systems and slide decks.
Private Image Palette Extractor In Your Browser
Image Palette Extractor is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use Image Palette Extractor
Hand over a picture using the Drop an image to extract its colors target, which reads any image format.
Let the sampler run — the picture is reduced to at most 200 pixels on its longest edge, then quantized and ranked by coverage.
Click any swatch to copy that hex value to your clipboard.
Copy the :root block underneath, which defines --palette-1 through --palette-10 in the same order.
- Ranks colours by how much of the image they cover, returning up to ten
- Quantizes to four bits per channel and averages each bucket, which avoids a palette of near-identical swatches
- Transparent pixels are excluded from the analysis
- Clicking a swatch copies its hex value, and a ready-to-paste :root block of CSS custom properties is generated
- A designer building a colour palette to accompany a photograph in a brand moodboard.
- A developer generating CSS custom properties to match an existing illustration without hand-picking swatches.
- A slide-deck author pulling the dominant colours out of a hero image so the surrounding slides agree with it.