Image Color Palette Extractor
Pull 5 to 12 main colours from any image, with HEX, RGB and HSL codes, contrast checks and CSS or JSON export. Runs locally in your browser.
Extract a Colour Palette
Drop an image to pull out its main colours, with contrast checks and ready-to-use code.
Image
Options
Exports as --brand-1, -2 and so on.
Your palette will appear here
Drop a photo, logo, thumbnail or screenshot. Colours are read on your device.
Contrast follows WCAG 2.2: 4.5:1 for body text (AA), 3:1 for large text and icons, 7:1 for AAA.
How to Use the Image Color Palette Extractor
Drop, paste or choose a photo, logo, thumbnail or screenshot.
Choose how many colours to extract, from 5 to 12, and how to order them.
Copy any colour as HEX, RGB or HSL, or click the image to pick an exact pixel.
Download a swatch card, or copy the palette as CSS variables or JSON.
Why Use This Image Color Palette Extractor?
Smart colour grouping
Clustering groups similar pixels, so you get the colours that define the image rather than thousands of near-identical shades.
Contrast at a glance
Every colour shows its contrast ratio with white and with black, with clear WCAG pass and fail labels.
Ready for your tools
Copy CSS variables or JSON, or download a swatch card for a brand board or media kit.
Pick any pixel
Click the image to sample an exact colour, with the same codes and contrast checks.
Common Use Cases for the Image Color Palette Extractor
Brand kits
Pull colours from a logo or product photo to build a consistent palette for posts and templates.
Feed aesthetics
Match your next posts to the colours already in your Instagram grid or Pinterest boards.
Thumbnail colours
Read the colours of a thumbnail that works so you can reuse its contrast.
Design hand-off
Give a designer or developer exact codes instead of describing a colour.
Media kits and decks
Style a media kit or pitch deck in colours taken from your best content.
Accessible text colours
Check which brand colours can carry text on white or black before you design with them.
Understanding Colour Palettes
How the colours are found
The image is scaled down and its pixels are grouped with k-means clustering, which assigns each pixel to the nearest group and repeats until the groups settle. Each swatch is the average of one group, and its share is how much of the image that group covers.
Reading contrast ratios
Contrast compares the relative brightness of two colours, from 1:1 to 21:1. WCAG asks for 4.5:1 for body text, 3:1 for large text and icons, and 7:1 for the stricter AAA level.
HEX, RGB and HSL
HEX and RGB describe the same colour as amounts of red, green and blue in different notation. HSL describes hue, saturation and lightness, which makes it easier to create lighter or darker versions of a brand colour.
Privacy, Security and Availability
Image Color Palette Extractor runs locally in your browser. Your files never leave your device: they are read, processed and exported in this tab, and nothing is uploaded to a server. There is no account, no watermark and no limit on how often you use it. Once the page has loaded, the tool keeps working offline.
Related Tools
Frequently Asked Questions About the Image Color Palette Extractor
Five or six suit most brand palettes. Choose more for detailed photos when you want accent colours too.
Small areas can be grouped with a larger, similar colour. Raise the number of colours, or click the accent in the image to pick it directly.
Each swatch is the average of a group of similar pixels, so it may not match any single pixel. Use the picker when you need an exact value.
Yes. Copy the HEX codes into any design tool, or use the CSS variables in a website.
No. Transparent and mostly transparent pixels are ignored, so logos on clear backgrounds give clean results.
Yes. It is free with no signup, no watermark and no usage limit.
No. 100% client-side. No uploads, no signup. Your files are processed in your browser and never leave your device.