Color Picker
Use Color Picker to choose and convert color precisely — instant and free.
Check whether your text and background colours have enough contrast to be readable — measured against the WCAG accessibility standard, with pass or fail at each level. Runs in your browser.
Your browser is preparing the tool. It runs 100% locally.
Pick a text colour and a background colour and the tool calculates their contrast ratio and shows whether the pair passes the WCAG accessibility levels: AA for normal text (4.5:1), AA for large text (3:1) and AAA for normal text (7:1). It uses the exact WCAG relative-luminance formula, with a live preview so you can see the result. Ratios run from 1:1 (no contrast) to 21:1 (black on white). It runs entirely in your browser.
Choose the two colours and you immediately get the contrast ratio between them, plus a pass or fail badge for each accessibility level, over a live preview of sample text. It is the quick way to check that text will be readable, including for people with reduced vision.
The contrast ratio is the standard measure of legibility used in web accessibility. A higher ratio means the colours are more distinct; the WCAG guidelines set minimum ratios that text should meet, and this tool tells you whether yours does.
The tool converts each colour to its relative luminance — a brightness value that weights green most and blue least, matching how the eye perceives colour — and then takes the ratio of the lighter to the darker, with a small offset, exactly as the WCAG formula specifies. The result is a number from 1 to 21.
It then compares that ratio against the WCAG thresholds: 4.5:1 for normal text at level AA, 3:1 for large text at AA, and 7:1 for normal text at the stricter AAA. Each gets a pass or fail, so you can see at a glance which standards your colours meet.
ratio = (L_lighter + 0.05) ÷ (L_darker + 0.05)
L = 0.2126·R + 0.7152·G + 0.0722·B (linearised sRGB)
pass marks — AA normal 4.5:1 · AA large 3:1 · AAA normal 7:1black #000000 on white #FFFFFF → 21:1 (passes every level)Ratios run from 1:1 (identical colours) to 21:1 (black on white); higher is more readable.
| Measures | WCAG contrast ratio (1:1 to 21:1) |
|---|---|
| Checks | AA normal, AA large, AAA normal |
| Formula | exact WCAG relative-luminance ratio |
| Preview | live sample text in your colours |
| Not shown | AAA large (4.5:1) |
| Where it runs | In your browser — nothing uploaded |
It uses the exact WCAG 2 formula, so the ratio matches other compliant checkers. Where results seem to differ, it is usually because a colour was rounded or an alpha (transparency) was involved — this tool compares two solid colours.
It does not know your font size, so you choose which level applies. Large text — about 18 point, or 14 point bold — only needs 3:1 at AA, while normal text needs 4.5:1; pick the badge that matches your actual text.
It shows three of the four WCAG thresholds. AAA for large text (4.5:1) is the same number as AA for normal text, so you can read it from the AA-normal badge; the tool does not label it separately.
It assumes opaque colours on a flat background. Semi-transparent text, gradients or images behind the text change the real contrast, which a two-colour check cannot capture — test against the actual rendered colours.
WCAG 2 contrast is the current standard, but it is a model, not a perfect match for perception. A newer perceptual method (APCA, proposed for a future version) can rate some colour pairs differently; for compliance today, the WCAG 2 ratio shown here is what counts.
Check that body and heading colours are readable on their background.
Confirm a colour pair passes WCAG AA or AAA before shipping.
Make sure interactive text stands out enough to read.
Test existing colour pairs against the standard.
Need to check a whole page automatically? A browser accessibility tool (such as axe or Lighthouse) scans every element. Want the newer perceptual model? An APCA checker rates contrast differently for a future standard.
Computes the exact WCAG 2 contrast ratio from each colour's relative luminance and checks AA normal (4.5:1), AA large (3:1) and AAA normal (7:1); it is explicit that AAA large (4.5:1) is read from the AA-normal badge, that it compares solid colours (not transparency), and that you choose the level matching your text size.
Use Color Picker to choose and convert color precisely — instant and free.
Use HEX to RGB Converter to choose and convert color precisely — instant and free.
Use Color Palette Generator to choose and convert color precisely — instant and free.
Use Gradient Generator to choose and convert color precisely — instant and free.
RGB to HEX Converter with copy-ready values for design and front-end work.
HEX to HSL Converter online — accurate color values, palettes and previews in-browser.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.