Color Contrast Checker
Check WCAG 2.x contrast, preview text, inspect APCA Lc and find a passing color.
How to use
Enter foreground and background colors as Hex, rgb(), hsl() or oklch(), or use the native color pickers. The preview and WCAG 2.x ratio update immediately. Separate cards show AA and AAA results for normal text, large text and UI components. Swap reverses foreground and background. When normal text misses AA, the suggestion adjusts only HSL lightness to find the nearest passing foreground. APCA Lc is informational because APCA remains a draft model.
FAQ
What contrast ratio does WCAG require?
WCAG 2.x AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively. Non-text UI components use a 3:1 AA threshold.
Why is #777 on white often discussed?
#777777 on white is about 4.48:1, just below the 4.5:1 AA requirement for normal text, while still passing for large text and UI components.
Is APCA part of current WCAG conformance?
No. This tool displays an APCA 0.0.98G-style Lc value for comparison, but WCAG 2.x pass badges use the normative relative-luminance ratio.