Skip to main content

CometWeb tools

Contrast ratio checker

Choose text and background colors. Preview the pair and check it against WCAG 2.2 contrast thresholds.

FreeNo account required

Colors

Paste a HEX code or choose a color from the picker.

Calculations run in your browser. Colors are not sent for analysis.

Preset pairs

Contrast ratio
19.17: 1

AA · Normal: pass

Preview: 24 px heading · 16 px body

Large heading title

The quick brown fox jumps over the lazy dog.

0123456789 · @ & %

AA · Normal≥ 4.5:1pass
AA · Large≥ 3:1pass
AAA · Normal≥ 7:1pass
AAA · Large≥ 4.5:1pass

The displayed ratio is rounded. Threshold checks use the full value.

Which threshold applies?

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 ↗
4.5:1

Start with body text

The AA threshold for text in paragraphs, labels and buttons. Normal text needs 7:1 for AAA.

3:1

Large text has a different threshold

AA for text at least 24 px, or bold text at least approximately 18.67 px. Large text needs 4.5:1 for AAA.

Aa

Check the finished design too

Review text at its actual size. Check links, placeholders, hover and focus states separately. A passing pair does not assess other elements.

This tool patches one problem at a time

Automated WCAG 2.2 tests with a fix list and an action plan.