Skip to content
한국어

Colour Palette & Contrast

Pull the dominant colours out of any picture, read exact pixels with an eyedropper, explore harmonies and check text contrast against WCAG, then export the palette for code or design tools.

  • Colours from any image
  • Eyedropper & harmonies
  • WCAG contrast + fix
  • CSS · Tailwind · ASE
  • On your device, nothing uploaded

Palette

Colours6
Order

Export

ASE opens in Photoshop, Illustrator and InDesign as a swatch library.

Contrast checker

Aa Large text 24px

Normal text at 14px: the quick brown fox jumps over the lazy dog.

13.89:1✓ AA text✓ AA large✓ AAA text✓ AAA large✓ UI 3:1

WCAG 2.2: 4.5:1 for normal text, 3:1 for large text (24 px, or 19 px bold) and UI parts; 7:1 for AAA. Click a swatch below to use it here.

No file at hand?Photo: U.S. Fish and Wildlife Service, public domain

v1.1.0

How to use the Colour Palette & Contrast

  1. Drop a photo, logo, screenshot or design, or paste it with Ctrl+V. The main colours appear at once, heaviest first, each with its nearest CSS colour name.
  2. Set how many colours you want (2 to 12) and the order: by share, by hue around the wheel, or light to dark.
  3. Click anywhere on the picture to read that exact pixel, or use the screen eyedropper (Chrome and Edge) to pick a colour from any window.
  4. Click a swatch to see its harmonies: complementary, analogous, triadic, tetradic, plus five tints and five shades. Click any of them to copy the hex.
  5. Check text on background: pick two colours from the palette or type them, read the WCAG ratio, and press Fix to get the closest colour of the same hue that passes.
  6. Export the palette as CSS custom properties, a Tailwind config block, JSON, an SVG strip, or an Adobe ASE swatch library.

What it does well

Colours people actually see. The clustering runs in OKLab rather than raw RGB, so two blues that look alike are merged and a small but distinct orange is not swallowed by a big beige. Names come from the 140 CSS colour keywords, which makes a palette easy to talk about ("that is more of a sienna than a peru").

A contrast fix, not just a verdict. Most checkers stop at pass or fail. Here the Fix button searches lightness in both directions, keeping the hue and as much saturation as the sRGB gamut allows, and returns the nearest colour that clears 4.5:1, so a brand colour can be adjusted rather than replaced.

Exports that drop straight in. The CSS, Tailwind and JSON exports are ready to paste; the SVG strip is a self-contained graphic; and the ASE file is the native swatch-exchange format Adobe apps read, written here from scratch.

Frequently asked questions 8

Is the picture uploaded?

No. It is drawn onto a canvas in your browser and the pixels are read there. Nothing is sent anywhere, and the picture is not kept after you leave; only the hex values go into your history if you export.

How are the main colours found?

Pixels are sampled on a grid, converted to the OKLab colour space (where distances match how people see colour), grouped with median cut and refined with k-means, then near-identical groups are merged. The share next to each swatch is the fraction of the picture it covers. An image with only three colours gives exactly those three, not invented blends.

Why is the colour I see not in the palette?

Small details (a red button on a grey page) can cover less than half a percent of the pixels and are dropped as noise. Raise the number of colours, or click the detail with the eyedropper to read it directly.

What do AA and AAA mean?

WCAG, the web accessibility standard, asks for a contrast of at least 4.5:1 between normal text and its background (AA), 3:1 for large text and UI parts, and 7:1 for AAA. The checker shows the exact ratio and which bars it clears, and Fix nudges the text colour lighter or darker, keeping its hue, until it passes.

What is a tint, a shade, a complementary colour?

Tints mix the colour toward white and shades toward black (here in OKLab, so the steps look even). The complementary colour sits opposite on the hue wheel; analogous colours sit 30° to either side; triadic colours split the wheel in three and tetradic in four. They are starting points for a scheme, not rules.

Which export should I use?

CSS variables for a website, the Tailwind block if the site uses Tailwind, JSON for scripts, the SVG strip to drop into a mood board or slide, and ASE to load the swatches into Photoshop, Illustrator or InDesign.

Can I get the colour of something outside this page?

In Chrome and Edge, yes: the Screen button opens the browser's eyedropper and you can click anything on your screen. Other browsers do not offer that, so take a screenshot and drop it here.

How do I send a palette to someone?

Copy link puts the colours, and the text and background pair of the contrast checker, into this page's address. Whoever opens the link sees the same swatches, harmonies and contrast check and can export them; the picture is not in the link and never leaves your device.

Rate this tool

One tap is enough; a note is optional. Only the operator reads them.

Stars

More free tools