Check foreground and background color contrast ratios against WCAG 2.1 AA and AAA accessibility thresholds using exact W3C relative luminance math.
Test foreground and background HEX color pairs using the W3C relative luminance formula to verify compliance with WCAG AA Normal Text (4.5:1), Large Text & UI Components (3.0:1), and AAA Enhanced Contrast (7.0:1), plus one-click lightness nudging.
Normal body text requires at least 4.5:1, while large text (18pt / 24px or 14pt / 18.67px bold) and non-text UI components require at least 3.0:1.
It adjusts the HSL lightness of your foreground color step-by-step away from the background luminance while preserving hue and saturation until 4.5:1 is achieved.