How the palette extractor works
The tool scales your image down and groups similar pixels with k-means clustering, a standard technique for finding the most representative colors. Each swatch is the average color of one group, and the percentage shows how much of the image that group covers. Fully transparent pixels are ignored, so logos on transparent backgrounds work well.
Which palette colors can be used for text?
A palette that looks great can still be hard to read. Under the palette, the tool pairs every color with every other one (and, if you like, with pure white and black) and measures the WCAG contrast ratio. AA needs 4.5:1 for normal text, AAA needs 7:1, and large text (about 24px, or 19px bold) needs only 3:1. Use the passing pairs for text and buttons, and keep the rest for backgrounds, borders and decoration.
Ideas for using an image palette
- Brand colors: pull the exact colors from a logo to build a website theme.
- Matching designs: grab colors from a product photo so banners and social posts feel consistent.
- Interior and fashion: find colors that go together, taken from a photo you love.
- Data visualization: base your chart colors on a cover image or illustration.
Frequently asked questions
How many colors should I extract?
Five or six covers most photos. Use three or four for logos and flat illustrations, and eight to twelve for busy photos where you want accents as well.
Why are the results slightly different each time I change the count?
Clustering groups pixels differently depending on how many groups you ask for. With more colors, larger areas get split into finer shades.
Can I get the code for one specific pixel?
Yes, use the Image Color Picker and click the exact spot you need.
How do I know which colors are readable together?
Look at the Accessible color pairs section under the palette. It lists every text and background combination that passes WCAG AA, AAA or the large-text level, with its exact contrast ratio. If no pair passes, turn on "Add white & black": most palettes have at least one color that works with one of them.
Is the image uploaded?
No. Everything runs in your browser, and the image is never sent to a server.