Colour Palette from Image
Get the main colours of any picture, for a brand, a website or a room design. Choose how many colours you want; each one shows its HEX and RGB code and how much of the picture it covers.
or drop a file here · JPG, PNG, WebP · up to 50 MB
Processed on your device. Your files are not uploaded.
About the Colour Palette from Image Tool
A palette is a short list of the colours that define a picture. Taking one from a photo you love is a quick way to choose colours for a website, a presentation, a wedding invitation or a room, and taking one from a logo shows the brand colours behind it. This tool finds between 2 and 12 main colours and shows how much of the picture each one covers.
How the colours are found
The image is first reduced to about 400 pixels on its longer side, which keeps the work fast. Pixels that are mostly transparent are ignored. The remaining pixels are grouped with k-means clustering: the tool picks starting colours spread across the picture, puts every pixel in the group of the nearest one, moves each starting colour to the average of its group, and repeats until the groups stop changing. Each final average becomes a swatch. A fixed random seed means the same image always gives the same palette.
This is ordinary statistics rather than artificial intelligence, and it has a known weakness: groups follow pixel counts. A small but vivid detail, such as a red badge on a large grey wall, may be absorbed into a neighbouring group. Asking for more colours usually brings it out, and the Image Colour Picker can read that exact spot.
Using the result
Every swatch shows its HEX code, its RGB value and its share of the picture, with a copy button. The whole palette can be copied or saved as plain HEX codes, as RGB values, as CSS custom properties ready to paste into a stylesheet, or as JSON with the percentages. A palette image with labelled blocks can also be downloaded as a PNG to share with a client or keep with a mood board.
Tips
Photos with soft lighting give gentle, related colours. For a clean brand palette, use the original logo file rather than a photo of it.
Privacy
The analysis runs in your browser, and the image never leaves your device.
How to use Colour Palette from Image
- Choose a JPG, PNG or WebP image.
- Set the number of colours (2 to 12).
- Copy the codes or the palette as CSS or JSON, or download the palette image.
Privacy: how it works
Your files are processed on your own device by your browser. They are not uploaded to any server.
Frequently asked questions
How are the colours chosen?
Similar pixels are grouped with k-means clustering and each group is averaged. It is plain statistics, not AI, and the same image always gives the same palette.
Why is a small but striking colour missing?
Groups are formed by how many pixels share a colour, so a small red logo on a large white page can be merged into a nearby group. Ask for more colours, or use the Image Colour Picker for that spot.
Are transparent areas counted?
No. Pixels that are mostly transparent are ignored, so a logo on a transparent background gives the logo colours only.