Start with body text
The AA threshold for text in paragraphs, labels and buttons. Normal text needs 7:1 for AAA.
CometWeb tools
Choose text and background colors. Preview the pair and check it against WCAG 2.2 contrast thresholds.
Paste a HEX code or choose a color from the picker.
Calculations run in your browser. Colors are not sent for analysis.
AA, Normal: pass
Large heading title
The quick brown fox jumps over the lazy dog.
0123456789, @ & %
The displayed ratio is rounded. Threshold checks use the full value.
This checks one pair of opaque colors, not the accessibility of an entire page. Gradients, images and transparency require checking the actual background behind the text.
W3C contrast guidance ↗The AA threshold for text in paragraphs, labels and buttons. Normal text needs 7:1 for AAA.
AA for text at least 24 px, or bold text at least approximately 18.67 px. Large text needs 4.5:1 for AAA.
Review text at its actual size. Check links, placeholders, hover and focus states separately. A passing pair does not assess other elements.
It lightens or darkens the text color until it reaches 4.5:1 against the selected background. The background stays unchanged. Review the new color in your design: it may differ from your brand color.
No. This tool calculates contrast between two colors and compares it with text thresholds. It does not test your site, keyboard access, image descriptions or other accessibility requirements.
The calculator accepts 3- or 6-digit HEX without an alpha channel. For transparent text, first determine its resulting color on the specific background. For an image or gradient, check the lowest-contrast area behind the text.
Automated WCAG 2.2 tests with a fix list and an action plan.