Color Picker
Pick a colour with the swatch or type a hex code, and read it back as HEX, RGB, HSL and CMYK side by side. Your browser does every conversion.
Check whether your text and background colours have enough contrast to read, with a pass or fail at each WCAG accessibility level.
Updated
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, then shows whether the pair passes WCAG: 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 and shows a live preview. Ratios run from 1:1 (no contrast) to 21:1 (black on white). Your colours are checked on your device.
Choose the two colours and you get the contrast ratio straight away, plus a pass or fail badge for each accessibility level and a preview of sample text. That tells you whether the text will be readable, including for people with reduced vision.
Web accessibility uses the contrast ratio as its standard measure of legibility. The higher the ratio, the more distinct the colours. WCAG sets minimum ratios for text, and the tool tells you whether your pair meets them.
The tool converts each colour to its relative luminance, a brightness value that weights green most and blue least to match how the eye sees colour. It then divides the lighter value by the darker one, each with a small offset, exactly as the WCAG formula says. The result is a number from 1 to 21.
That ratio is compared with 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 threshold gets its own pass or fail, so you can see 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 | On your device; colours are never sent |
It uses the exact WCAG 2 formula, so the ratio matches other compliant checkers. When results seem to differ, a colour was usually rounded or had some transparency. This tool compares two solid colours.
It can't see your font size, so you decide which level applies. Large text (about 18 point, or 14 point bold) needs only 3:1 at AA, while normal text needs 4.5:1. Read the badge that matches your actual text.
It shows three of the four WCAG thresholds. AAA for large text is 4.5:1, the same number as AA for normal text, so the AA-normal badge answers both.
It assumes opaque colours on a flat background. Semi-transparent text, or a gradient or image behind it, changes the real contrast in ways a two-colour check can't capture. Test the colours as they actually render.
WCAG 2 contrast is today's standard, but it's a model and doesn't match perception perfectly. APCA, a newer perceptual method proposed for a future version, rates some colour pairs differently. For compliance now, the WCAG 2 ratio shown here is the one that 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.
The ratio comes from each colour's relative luminance, using the exact WCAG 2 formula, and is checked against AA normal (4.5:1), AA large (3:1) and AAA normal (7:1). AAA large is 4.5:1, so read it from the AA-normal badge. The tool compares solid colours only, and you choose the level that matches your text size.
Pick a colour with the swatch or type a hex code, and read it back as HEX, RGB, HSL and CMYK side by side. Your browser does every conversion.
Turn a hex color into its red, green and blue numbers and the CSS rgb() string, exactly.
Pack red, green and blue numbers into the compact #RRGGBB hex code the web runs on.
Compress an image to JPEG with a quality slider and watch the file size drop as you drag, in your browser.
Combine several PDFs into one file in the order you choose, without leaving your browser.
Count words, characters, sentences and paragraphs as you type, with reading and speaking time alongside.
Run your check at the top of the page. What you enter stays on this device.