Image Color Palette Extractor
Pull dominant colors from a photo, copy HEX, RGB, HSL or CSS variables
Your image is never uploaded. Colors are extracted entirely inside this browser.
How to use Image Color Palette Extractor
- Choose, drop or paste an image to see its dominant colors and how much of the image each one covers.
- Set 3–10 colors, copy each as HEX, RGB or HSL, or copy them all as CSS variables or Tailwind config.
- Your image is never uploaded — everything runs inside this browser.
Frequently asked questions
Is my image uploaded to a server?
No. The image is read and analyzed only in a canvas in your browser, and it is not included in the share link. You can pick, drag and drop, or paste images up to 30MB.
How are the main colors picked?
The image is scaled down to 160px on its longest side, nearly transparent pixels are skipped, and k-means++ clustering groups similar colors; each group's average becomes a palette color. The percentage is that group's share of the pixels, and colors are listed from largest to smallest. The same image always gives the same palette.
I asked for more colors but got fewer. Why?
You can choose 3 to 10 colors (6 by default), but if the image has fewer distinct colors, you only get those. For example, an image that is only 75% red and 25% blue gives just #e61e28 (75%) and #143cc8 (25%) even when you ask for 6.
Can I use the palette in Tailwind or as CSS variables?
Yes. Copy the whole palette as CSS variables (:root { --color-1: … }), as a Tailwind v4 @theme block (--color-palette-1, which gives classes like bg-palette-1), or as a Tailwind v3 tailwind.config.js (theme.extend.colors.palette). Each color can also be copied as HEX, RGB or HSL.