color palette from image
Drop a photo, logo, screenshot or artwork and get its main colours as hex codes, with how much of the picture each one covers. Click anywhere on the image to pick an exact pixel. Your image stays on your device.
Tap or click the picture to pick any pixel's colour.
How to extract colours from an image
- Drop an image on the box, click to choose one, or paste a screenshot with Ctrl+V (Cmd+V on a Mac).
- The main colours appear straight away. Use the slider to get between 2 and 10 colours.
- Click a hex code to copy it, or click the picture to pick any single pixel.
- Copy all the codes, the CSS variables or a PNG swatch, or open the palette in the generator to adjust it.
What people use it for
- Brand colours from a logo: get the exact hex codes when all you have is a logo image.
- Website and slide themes: build a colour scheme that matches a hero photo or product shot.
- Interior and outfit ideas: pull the colours from a room, landscape or outfit you like.
- Art and illustration: sample a reference image or painting to build a limited palette.
Tips for better palettes
- Crop to the part of the picture you care about first: backgrounds and sky can dominate the result.
- Photos have many similar shades, so 5 to 6 colours usually gives the most useful palette; logos need fewer.
- Screens show colour differently, so a palette from a photo of a printed item won't exactly match the original ink.
- Before using a colour for text, test it with the contrast checker.
Frequently asked questions
Is my image uploaded anywhere?
No. The image is opened by your browser and analysed on your device with a canvas. It never leaves your computer or phone, so it's safe for private photos and unreleased designs.
How are the colours chosen?
The tool groups similar pixels together using k-means clustering in the CIE Lab colour space, which matches how people see colour differences better than plain RGB. Each colour is the average of one group, and the percentage shows how much of the picture it covers.
Why doesn't the palette include a small bright detail?
Small details cover few pixels, so they can be merged into a bigger group. Increase the number of colours with the slider, or click the detail in the picture to pick its exact colour.
Which image types work?
Any image your browser can open: JPG, PNG, WebP, GIF, AVIF and SVG in most browsers. iPhone HEIC photos may need converting to JPG first; you can do that with the image converter on this site.
Are transparent areas counted?
No. Pixels that are mostly transparent are ignored, so a logo on a transparent background gives you just the logo colours.
Can I get the colour of one exact spot?
Yes. Click or tap anywhere on the picture and that pixel's hex code is shown and copied to your clipboard.