What WCAG Measures and What It Doesn't
WCAG contrast ratios calculate the luminance difference between foreground and background using a formula derived from vision research. A ratio of 4.5:1 for normal text is the AA standard. Passing means the luminance difference is sufficient for most users under standard conditions. It does not guarantee legibility when colors are similar in hue and saturation, does not account for font weight and letterform interaction, does not test for hue-based discrimination difficulty (relevant for color vision deficiency), and does not account for contextual factors like surrounding colors, viewing angle, or ambient lighting.
