Color Accessibility & Web Standards (WCAG 2.1)
The Web Content Accessibility Guidelines (WCAG) specify that text must maintain adequate contrast against its background to ensure individuals with low vision or color vision deficiencies can read without strain.
WCAG Level AA (Minimum)
Requires a contrast ratio of at least 4.5:1 for normal body text and 3.0:1 for large text (18pt+ or 14pt bold).
WCAG Level AAA (Enhanced)
Requires a contrast ratio of at least 7.0:1 for normal text and 4.5:1 for large text for maximum legibility.
Pure In-Browser Precision
Relative luminance is computed using sRGB gamma expansion coefficients (0.2126R + 0.7152G + 0.0722B) with 100% mathematical precision.