Colour palette from an image
Pull the main colours out of a picture and copy them as hex, RGB or CSS variables.
Runs in this browser. Nothing you give it is uploaded.
Loading the tool...
02About this tool
How to use it.
- Choose a picture: a logo, a photo, a mood board.
- See its main colours, ordered by how much of the picture they cover. Change how many you want.
- Tap a swatch to copy its hex code, or copy the whole set as CSS variables or JSON.
Questions
How are the colours chosen?
The picture is shrunk, then a clustering method called k-means groups similar pixels. Each swatch is the middle of one group. The same picture always gives the same palette.
Can I pick one exact colour?
Yes. Tap or click any point in the picture. In Chrome and Edge there is also a button to pick from anywhere on your screen.
Need this built into your business?
These tools are small examples of how we work: software that does one job well, where your data already is. If a job like this happens in your company every day, tell us about it.