๐จColor Contrast & WCAG Compliance Checker Documentation & Guide
๐How to Evaluate Color Contrast
- Select or Enter Colors: Use the native color pickers or type any 6-digit hex color code into the Foreground and Background inputs.
- Swap Palette: Click โ Swap Colors to immediately invert your foreground text and background canvas.
- Inspect Real-Time Preview: Review the interactive visual sample card showcasing 24px headings, 16px body copy, solid buttons, and outlined controls.
- Verify WCAG Standards: Check the compliance grid against Level AA (minimum 4.5:1 for body, 3.0:1 for large) and Level AAA (7.0:1 for body, 4.5:1 for large).
- Log & Copy: Click ๐จ Evaluate Contrast & Save to register the test in Universal History, or click ๐ Copy to extract the compliance summary.
โ๏ธCompliance Standards & Practical Applications
WCAG calculates contrast using relative luminance ($L$), defined as the relative brightness of any point in a colorspace normalized to 0 for black and 1 for white: