Get a color palette from image files in seconds. This free tool extracts colors from image photos, logos, artwork and screenshots – the 3 to 12 main colours with HEX codes, names and how much of the picture each one covers – and shows where each colour sits on the image. Export the palette as CSS variables, SCSS, Tailwind, JSON or a palette image. Nothing is uploaded.
Private by design: your files are processed in your browser and never uploaded to any server.
How to extract a color palette from image files
- Choose an image.
- Set the Number of colours from 3 to 12.
- Sort by Most used, Light → dark or Rainbow. Tap any colour to copy its HEX code.
- Export as code or click Download palette image to save the picture with its colour strip.
How it finds the right colours
The tool groups similar pixels together (k-means clustering in a perceptual colour space), so the palette matches how people actually see the picture. It then keeps colours that are clearly different from each other, so a small but important accent – a gold border or a blue logo – is not lost among similar browns or greys. The percentage shows how much of the image each colour covers.
Export options
| Export | Example | Use it for |
|---|---|---|
| CSS variables | –color-royal-blue: #1D4ED8; | Websites and WordPress themes |
| SCSS variables | $royal-blue: #1D4ED8; | Sass projects |
| Tailwind config | ‘royal-blue’: ‘#1D4ED8’ | Tailwind CSS |
| JSON | name, hex, rgb, share | Apps and design tokens |
| HEX list | #1D4ED8, #F59E0B | Canva, Figma, Adobe Express |
| Palette image | Photo + colour strip | Mood boards, Pinterest, client presentations |
Ideas
- Build a brand colour scheme from your logo or product photo.
- Match a website or Instagram theme to a photo.
- Pick wedding, party or room colours from an inspiration picture.
- Find matching colours for a presentation from the cover image.
Features
- 3 to 12 main colours with percentages
- Colour names and locations on the image
- Sort by usage, lightness or hue
- CSS, SCSS, Tailwind, JSON and HEX export
- Downloadable palette image
- Works with JPG, PNG, WebP, HEIC (iPhone), AVIF and BMP
- Free, no sign-up, no watermark, no upload
Private: your photos never leave your device
Most online photo tools upload your pictures to their servers. This one works differently: everything happens inside your own browser, so your photos are never uploaded, stored or seen by anyone. It is safe for family photos, ID documents and work images, and fast too, because there is no upload or download wait.
Add this colour palette generator to your website (free widget)
Do you run a blog, school, coaching or business website? You can add this free colour palette generator to your own page as a widget in under a minute. It works just like the tool above: files are processed in your visitor’s browser and never uploaded, and the widget shows no ads, only a small “Powered by All Tool Widgets” link.
- Open Get this tool as a free widget for your website just below the tool.
- Pick a button colour that matches your brand and click Copy code.
- Paste the code into your page: a Custom HTML block in WordPress, an HTML/JavaScript gadget in Blogger, or an Embed HTML element in Wix and Shopify.
See all embeddable tools on our free widgets page.
How do I get a colour palette from an image?
Choose the image and the tool shows its main colours with HEX codes. Change the number of colours and export the palette as code or an image.
How many colours can I extract?
Between 3 and 12 colours. The palette updates instantly when you move the slider.
Can I export the palette for my website?
Yes. Choose CSS variables, SCSS or Tailwind and click Copy code.
What do the percentages mean?
Each percentage shows how much of the image is covered by that colour (and similar shades).
Can I get the colour of one exact spot?
Yes. Use our Image Color Picker to click any pixel and get its code.
Is my image uploaded?
No. The palette is calculated in your browser and your image stays on your device.
Can I add this colour palette generator to my website?
Yes. Copy the free widget code from the box below the tool and paste it into any web page. The widget is free for personal and commercial websites, shows no ads and keeps your visitors’ files private.
More free image tools: Image Color Picker, Photo Filters, Invert Image Colors, Image to ASCII Art.