Color Palette Generator from Image
Add a photo and see the colors it is built from as hex swatches. Click any swatch to copy its code.
- 1Say what you wantType it in, there is nothing to upload
- 2Adjust the lookThe preview updates as you type
- 3Download itPick the size you need
Works with JPG, PNG, and WebP. Your images never leave your browser.
Add a photo and its colours are pulled out here automatically.
How to use it
How to get a color palette from an image
Add a photo
Click the upload box or drag a JPG, PNG or WebP onto it. A screenshot of a website or artwork works just as well as a photo.
Read the palette
The dominant colors appear straight away as swatches, each labelled with its hex code, with the photo shown underneath for comparison.
Copy the codes
Click a swatch (or tab to it and press Enter) to copy its hex code, then paste it into CSS, Figma, Canva or your brand notes.
About this tool
What a palette extractor actually measures
A photo can contain hundreds of thousands of distinct colors, most of them tiny variations of the same few hues. A palette extractor reduces that to a short list you can design with. This tool uses ColorThief, which samples the pixels, splits them into groups of similar color (a method called median cut quantization), and reports the average color of each of the largest groups. You get up to eight swatches, roughly ordered from the most to the least dominant.
That makes it good at answering "what is this image made of?" A beach photo gives you its sand, sea and sky. A product shot gives you the product colors and the backdrop. A screenshot of a website gives you its brand colors and neutrals, which is a quick way to start a theme that matches an existing look.
Tips for a more useful palette
- Crop to what matters. Large backgrounds dominate the result. Cutting the image down to the subject with the image cropper gives you its colors rather than the wall behind it.
- Small accents can be outvoted by large areas. To get the exact value of one pixel, such as a logo or a button, use the image color picker instead.
- The swatches are averages, so they can be slightly softer than the most saturated pixels in the photo. Treat them as a starting point and adjust in your design tool.
- To shift the whole image toward a new color scheme rather than read its current one, try the HSL adjuster.
The image is analysed in your browser, so unreleased designs and client work stay on your device.
Common questions
Frequently asked questions
How are the palette colors chosen?
The tool uses the ColorThief library, which groups similar pixels together (median cut quantization) and returns the average color of each of the largest groups. The result is the handful of colors that cover most of the picture.
Why is a color I can see missing from the palette?
The palette favours colors that cover a lot of area. A small bright detail, such as a red button in a mostly blue photo, can be outvoted. Crop the image to the area you care about first, or use the color picker to sample that exact pixel.
How do I copy a hex code?
Click a swatch, or tab to it and press Enter. The code is copied to the clipboard and the swatch briefly shows Copied. If the browser blocks clipboard access, the code is shown on the page so you can copy it by hand.
Can I use HEX codes in CSS, Figma or Canva?
Yes. A hex code such as #3A6EA5 is the standard way to write an RGB color: two hexadecimal digits each for red, green and blue. CSS, Figma, Canva, Photoshop and most design tools accept it directly.
Is my image uploaded?
No. The image is read and analysed in your browser tab, so it stays on your device.
Check for yourself that nothing is uploaded
🔎 Verify it yourself: nothing uploads
Don’t take our word for it. Open your browser’s DevTools (F12 → Network tab), then run this tool on any image. You’ll see no upload request at all. Your file never leaves this tab. You can even turn off Wi‑Fi once the page has loaded and keep working. Every tool on this site works the same way: all processing happens on your device.