Use the ratio to check the colours
A contrast ratio answers a specific question about the two colours. WCAG 2.2 provides thresholds for common uses of text and visual information. A reading task also depends on the type, layout, lighting and the person using the page.
Two text samples with the same colours have the same ratio even when one uses small, thin characters. A large and sturdy face can be easier to read. Check text size, weight and spacing on the same devices you expect readers to use. For small text, choose a colour pair with a comfortable margin above the applicable threshold.
Treat light and dark themes as separate designs
Swapping foreground and background within the same colour pair leaves its numerical ratio unchanged. Readers can still experience the two directions differently. Text may look thicker or softer in one theme, especially at a small size. Test both themes with actual readers and judge what they can read comfortably.
A dark pair can also fail numerically. Black against #333333 is only about 1.66:1. That misses even the 3:1 minimum for large text. The fixed term in the formula does not tell you how reflections, low brightness or other viewing conditions will affect either theme.
Give important states their own check
Read the page on a narrow phone and a wider screen. Try default, hover, focus and selected states. Check colours in the least favourable part of an image or gradient behind the text. Look for edges or icons that carry a meaning without a text label. Measure the pairs, then have somebody use the page to do a real task.
Other contrast tools use different scales and may suggest different design choices. The WCAG 3.0 working draft is a separate standards project. Record which published criteria you checked when you make a conformance claim.
Try both directions
Put the same short instruction on a light card and a dark card using the same two colours with their roles swapped. Verify that the two ratios match. Ask two readers to complete the instruction and note where they pause or misread it. Try a stronger text weight or more space and compare again.
Check your understanding
A designer swaps the foreground and background colours. Both themes measure 8:1, but readers find one harder to read. What does that show?
Pick the one you would defend. Your answer stays private.
Your place and first choices stay on this browser. Classroom credit is recorded separately.
Stuck on something?Ask Meher, your AI tutor