Color palette extractor
Find the dominant colors in any image and copy them as HEX or RGB.
Drop a file here
Accepted: PNG, JPEG, WEBP. Max size 20 MB.
Or paste with Ctrl+V / ⌘V.
Settings
In short
CatTower's color palette extractor is a free online tool that finds the dominant colors in an image, gives you their HEX and RGB codes, and checks the WCAG contrast ratio between any two colors.
- Pick from 1 to 10 colors.
- Each color comes with its HEX and RGB values and its share of the image.
- Contrast check: the WCAG 2.2 ratio with pass or fail for AA (4.5:1 body, 3:1 large text and UI) and AAA (7:1 body, 4.5:1 large text), plus one nearby passing color when a pair fails.
- Input: PNG, JPEG or WebP, up to 20 MB.
- Free, with no sign-up. Images are processed on request and not stored.
Use cases
- Pull a color scheme from a photo for a slide deck or a website.
- Check that text and background colors taken from a product image are readable (WCAG AA or AAA).
- Copy exact HEX codes into CSS or a design tool.
How to use
- Upload a PNG, JPEG or WebP image.
- Choose how many colors you want.
- Select Copy on a swatch to copy its HEX value.
- Under Contrast check, pick a text color and a background from the palette or type a HEX value, then read the ratio and the pass or fail result for each WCAG level.
FAQ
Between 1 and 10.
HEX and RGB, with each color's share of the image.
Yes. Under the color cards, choose CSS variables or a HEX list (JSON), then copy the code or save it as a .css or .json file. Rename the variables if your project already uses the same names.
Under Contrast check, pick a text color and a background from the extracted colors or type a HEX value (#RGB or #RRGGBB). You get the WCAG 2.2 contrast ratio, (L1 + 0.05) / (L2 + 0.05), and pass or fail for AA body text (4.5:1), AA large text (3:1), AAA body text (7:1), AAA large text (4.5:1) and UI components and graphics (3:1). The result is judged on the exact ratio; the display is rounded to two decimals.
The checker suggests one nearby text color that meets the level you choose. It keeps the text color's hue and chroma in OKLCH and changes only its lightness, stays within sRGB, and is re-checked before it is shown. You can apply it or copy its HEX; your palette itself is not changed. The check runs in your browser and the colors are not sent anywhere.
No. Images are processed on request and not stored.
Related tools
- Background removerRemove background
- Favicon and PWA icon generatorFavicon generator
- Image resizer and converterResize and convert