T-56 · Converters
Check the WCAG 2 contrast ratio between text and background colors, see AA and AAA pass or fail, and get the nearest text color that passes AA.
HEX, rgb() or hsl().
HEX, rgb() or hsl().
Normal text: the quick brown fox jumps over the lazy dog.
Large text (24px)
Large bold text (18.66px bold)
Button outlineAbout this instrument
Enter a text color and a background color as HEX, rgb() or hsl() to get their contrast ratio, computed with the WCAG 2.2 relative luminance formula, and a pass or fail for AA and AAA at normal and large text sizes and for non-text UI components. A live preview shows real text in both colors. If AA normal text fails, the checker suggests the nearest lighter and darker shade of your text color, keeping its hue and saturation, that reaches 4.5:1.
FAQ
4.5:1 for normal text and 3:1 for large text and for user-interface components and meaningful graphics.
No. #777777 on #ffffff is 4.48:1, just under 4.5:1. #767676 reaches 4.54:1 and is the lightest such gray that passes AA.
No. It uses the WCAG 2.x formula, which is what current laws and audits refer to. APCA is a different, draft method.
Related instruments