How to get a color palette from an image
- Choose or drop a picture.
- Set how many colors you want. The palette updates straight away.
- Click a color to copy its hex code, or use Copy Hex Codes, Copy as CSS or Download Palette.
What you can use a palette for
- Branding. Read the exact colors out of a logo so a website, slide deck or flyer matches it.
- Web and app design. Build a color scheme around a hero photo so the page feels like one piece.
- Decorating and crafts. Find paint, yarn or fabric colors that match a photo you like.
- Art and illustration. Study the colors a painter or photographer used.
How the colors are chosen
The tool looks at every part of the picture and groups similar colors together. Each swatch is the average of one group, and the percentage shows roughly how much of the picture that group covers. Asking for more colors splits the groups further, which brings out smaller accents such as a red flower in a green field.
Because each swatch is an average, it may not match any single pixel exactly. To read the color of one exact spot, or to convert a code to another format, use the color converter and picker.
Hex and RGB codes
A hex code such as #2563EB is the form used in web design and most design apps. RGB gives the same color as three numbers from 0 to 255 for red, green and blue. Both describe exactly the same color, so use whichever your program asks for.
Using the palette in CSS
Copy as CSS gives you the colors as custom properties, ready to paste into a stylesheet:
:root {
--color-1: #1f2937;
--color-2: #2563eb;
}
Your picture is never uploaded
The colors are worked out in your browser on your own device. The picture is not sent to a server.
Frequently asked questions
How do I get a color palette from an image?
Add the picture and the main colors appear with their hex and RGB codes. Change the number of colors with the slider.
How do I find the hex code of a color in a picture?
Add the picture and click the swatch you want. Its hex code is copied to your clipboard.
How many colors can I extract?
From 2 to 12. Five or six is usual for a design palette.
Is my picture uploaded?
No. The picture is read in your browser and stays on your device.