Pull the dominant colours out of an image as hex, RGB and CSS variables.
JPEG, PNG, WebP, GIF, BMP or AVIF, up to 40 MB
Processed on your device — nothing is uploaded
A brand logo
Recover the exact brand colours
logo.pngA photograph
Build a scheme from an image
landscape.jpgA screenshot
Match an existing interface
ui.pngIt is downsampled for speed — the palette is unaffected.
Between two and twelve. Six suits most palettes.
Individual swatches, or the whole palette as CSS custom properties.
Colours that sit too close together are merged, so you get six distinguishable colours rather than six versions of the same blue.
Each swatch is the average of the pixels it represents, so the value returned is a colour genuinely present in the image.
The CSS output is a complete custom-property block, and every swatch copies as hex or RGB with one click.
Extract the colours that actually define an image and copy them straight into a stylesheet. Getting this right is harder than counting pixels: ranking raw frequency alone returns six near-identical shades of the same sky, so this tool buckets colours, averages each bucket to its true value, then merges any that sit too close together. What comes back is a palette that describes the image rather than one corner of it. Output is available as hex, RGB and a block of CSS custom properties, and the whole thing runs on your device.
Keep going
Related pages in Image Tools, plus what others are using right now.
More image tools that pair well with this one.
See the EXIF data hidden in a photo — camera, timestamp and GPS location.
Measure how hard an image has been compressed, and whether it is worth optimising.
Convert between JPEG, PNG and WebP, with quality control and transparency handling.
Shrink JPEG, PNG and WebP files with a quality slider and a live size comparison.
Strip EXIF and GPS data from a photo before you share it.
Resize images by pixel dimensions or percentage, with the aspect ratio locked or free.
Create strong random passwords with full control over length and characters.
Format, validate and minify JSON, with errors that point to the exact line.
Work out any percentage — of a number, as a share, or as a change.
Count words, characters, sentences and paragraphs as you type.
Convert between length, weight, temperature, volume, speed, data and more.
Count characters with and without spaces, against the limits that matter.
Find the mean, median, mode and range of a list of numbers, with the working shown.
Sample and population standard deviation and variance, both shown, with the working.
Check a downloaded file against its published checksum, without uploading anything.
Stamp text like DRAFT or CONFIDENTIAL across a PDF, in your browser.
Turn JSON into readable YAML, with quoting and multiline strings handled properly.
Escape text for HTML, or turn entities back into readable characters.