Image palette extractor

Extract dominant HEX colours from a PNG, JPEG, WebP, AVIF or GIF. Copy a swatch or the full palette. Your image stays in your browser.

Or drop a PNG, JPEG, WebP, AVIF or GIF here. Up to 25 MB and 40 megapixels.

Image preview

Extracted palette

Choose an image to see its colours.

Turn an image into a working colour palette

Choose an image and set the maximum number of colours. The extractor groups nearby colours from a small sample of the image and lists the resulting swatches by how much of the sample they cover.

A large background can dominate the result. Crop to the subject before extracting if you want colours from a particular area. Fully transparent pixels are ignored. On animated images, the extractor samples the opening frame.

Once you copy the HEX swatches, test your text and surface pairs in the Colour contrast checker or refine them in HEX, RGB and HSL before adding them to your stylesheet.

Common questions

Is my image uploaded to a server when extracting colours?

No. The image is decoded and sampled directly inside your browser using an offscreen canvas, so your photos, mockups and logos never leave your device.

Which image file formats are supported?

You can extract palettes from any image format your browser can decode, including PNG, JPEG, WebP, AVIF and GIF.