Contrast Check Game: Can you spot text that fails WCAG AA?
Grey text on a white background. It looks fine to you. Does it pass?
If the grey is #767676, yes. If it’s #777777, one step lighter, no. The difference between the two is invisible to most people, and it’s the difference between a page that meets accessibility guidelines and one that doesn’t.
Contrast Check trains you to make that call by eye, and teaches you the rule behind it.
How to play
Everyone gets the same ten text samples each day. For each one, say whether its contrast passes WCAG 2 level AA. Half of the day's samples pass and half fail. There is no clock.
The rule: the contrast ratio between text and background must be at least 4.5:1 for normal text. Large text needs only 3:1, and large means at least 24 px, or at least 18.66 px (14 pt) when bold. So 16 px bold is still normal text. The ratio runs from 1:1 (same color) to 21:1 (black on white) and is never rounded up: 4.49:1 fails.
Why it matters: about one in twelve men has some color blindness, and many more people read with low vision, glare or a dim phone screen. Text that clears the ratio stays readable for them. Bright colors catch people out: white on orange or on a vivid green often fails, while black on the same color passes.
The ratio uses the WCAG 2 formula for relative luminance, worked out from the colors' hex codes. The samples get closer to the line as the day goes on. Level AAA asks for more (7:1, or 4.5:1 for large text), and the game mentions when a sample clears it.
New samples arrive at midnight your time. Your streak is saved in this browser only, and any finished day keeps it going, whatever your score.
How to play
Every day you get ten text samples. Each one is a line of text on a colored background. For each sample, decide whether it passes WCAG AA for contrast or fails it. After you answer, the game shows the actual contrast ratio, so you learn how close each one was.
Some samples are easy: black on white, or pale yellow on white. The interesting ones sit near the line. A mid grey that almost makes it. A brand blue that misses by a hair. White text on a bright orange button, which fails by a lot even though it looks bold.
The rule: 4.5 to 1
WCAG is the Web Content Accessibility Guidelines, the standard published by the W3C that most accessibility laws and audits point to. Level AA is the middle tier, and it’s the one companies are usually asked to meet.
For contrast, AA sets two numbers:
- Normal text needs a contrast ratio of at least 4.5:1 against its background.
- Large text needs at least 3:1. Large means 18 point (24 px) and up, or 14 point (about 18.7 px) and up if it’s bold.
The stricter AAA level raises those to 7:1 and 4.5:1. User interface parts like input borders and icons have their own 3:1 minimum.
The ratio runs from 1:1, which is the same color on itself, to 21:1, which is pure black on pure white. It compares the relative luminance of the two colors, a measure of how much light each one gives off, weighted the way the human eye sees it.
The formula is (lighter + 0.05) / (darker + 0.05). You never need to calculate it by hand, but knowing it’s based on lightness explains almost every surprise in the game.
Why hue doesn’t help
Contrast in WCAG is about lightness only. Hue doesn’t count.
Pure red text on pure green looks like it couldn’t be more different. The contrast ratio is 2.91:1, a clear fail. Both colors land at a similar lightness, and for someone with red-green color blindness, they can blur into the same muddy tone. That’s exactly the reader the rule protects.
The reverse also happens. White text on a tomato red (#E35336) looks strong, but comes out at 3.78:1 and fails for normal text. Black text on the same red scores 5.56:1 and passes.
Most people would pick the white version as more readable. The numbers disagree because that red is a fairly light color in luminance terms, even though it looks intense.
Green is the worst offender. White on a popular Material Design green (#4CAF50) scores only 2.78:1. Darken the green to #2E7D32 and white text passes at 5.13:1. Greens, yellows, oranges and cyans all carry a lot of luminance, so white text on them fails far more often than people expect.
Blue goes the other way. White on pure blue (#0000FF) passes at 8.59:1, because blue contributes very little to luminance. Dark blues and purples are the safest backgrounds for white text.
The greys people get wrong
Light grey text is the most common contrast failure on the web. Designers use it for captions, placeholders, dates and secondary labels because it looks clean and quiet.
#999999 on white looks perfectly readable on a bright laptop screen. It scores 2.85:1. On a phone in sunlight, or for anyone over fifty, or anyone with low vision, that text fades into the background.
The cutoff for grey on white is a single step. #767676 is the lightest grey that passes AA for normal text on pure white, at 4.54:1. #777777 scores 4.48:1 and fails. If you remember one hex code from this game, make it #767676.
Worked example
Sample: white text, regular weight, 16 px, on a medium blue button (#3A7BD5).
Your first instinct is probably pass. The blue is fairly strong and white text reads clearly on it.
Check the lightness instead. #3A7BD5 has a lot of green in it (7B) on top of the blue, which pushes its luminance up. The ratio comes out at 4.22:1. For 16 px regular text, the bar is 4.5:1, so it fails.
Two fixes work. Darken the blue a little until the ratio crosses 4.5. Or make the button text large and bold, at which point the 3:1 rule applies and 4.22 passes easily. Most design teams choose the darker blue, because button labels are rarely 24 px.
Why this matters
About one in twelve men and one in two hundred women have some form of color vision deficiency. Far more people have reduced contrast sensitivity, which comes with age and with eye conditions like cataracts.
Everyone else loses contrast on a dimmed screen at night or a phone in direct sun. Text that passes AA is readable for most of them. Text that fails it is readable for whoever happened to design it on a good monitor.
Accessibility law points the same way. The European Accessibility Act, which has applied since June 2025, and many US accessibility lawsuits both point back to WCAG AA.
Contrast failures are among the easiest problems for an automated checker to find, which makes them among the most common items in an audit.
Contrast matters off screen as well. A printed sign, a wall menu or the label on a storage box follows the same logic: light text on a light background is hard to read. If you’re picking wall and trim colors, the LRV room brightness tool works on the same idea of lightness difference.
Tips to score higher
Ignore the hue and judge the lightness. Squinting helps: it blurs the color and leaves the light-dark difference.
Treat white text on yellow, orange, light green and cyan as a likely fail. Treat white on navy or dark purple as a likely pass.
Check the size before deciding. A sample that looks borderline might be large text, where the bar drops to 3:1.
Learn a few anchors: #767676 on white (just passes), #595959 on white (exactly 7:1, the AAA line), #333333 on #F5F5F5 (an easy pass at about 11.6:1).
For related practice, Lighter or Darker trains the same sense of lightness with wall colors, and Hex Guess helps you read the hex codes behind each sample. Both are on the color games page.
FAQ
What contrast ratio does WCAG AA require?
4.5:1 for normal text and 3:1 for large text. Large text is 24 px and up, or about 18.7 px and up when bold.
What’s the difference between AA and AAA?
AAA is stricter: 7:1 for normal text and 4.5:1 for large text. Most organizations aim for AA, and AAA is usually applied only to specific content.
Does WCAG 2.2 change the contrast rules?
No. WCAG 2.2, published in 2023, keeps the same contrast requirements as 2.1. A different contrast method is being discussed for the future WCAG 3, but it’s still a draft.
Do logos need to pass contrast checks?
No. WCAG exempts logos and brand names, along with purely decorative text and text in disabled controls.
Does text over an image need to pass?
Yes. The text has to meet the ratio against whatever area of the image sits behind it, which is why designers add dark overlays or text shadows on hero images.
How many samples are there each day?
Ten text samples, each one a pass or fail call against WCAG AA.

