WCAG contrast

Color contrast checker

Enter a text colour and a background colour to see the WCAG contrast ratio and whether it passes AA and AAA for normal and large text โ€” with a live preview. Free and entirely in your browser.

Large text preview

Normal body text preview โ€” the quick brown fox jumps over the lazy dog.

12.6:1

Open the full color tools โ†’

What the WCAG levels mean

The Web Content Accessibility Guidelines set minimum contrast so text stays readable for people with low vision or colour deficiency. The thresholds:

LevelNormal textLarge text
AA4.5:13:1
AAA7:14.5:1

Large text means at least 24px for regular weight, or 18.66px (14pt) bold. AA is the level most websites and legal accessibility standards target; AAA is stricter and often reserved for critical content.

How contrast ratio is calculated

The ratio compares the two colours' relative luminance โ€” a weighted measure of perceived brightness. The formula is (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter colour and L2 the darker. Values range from 1:1 (identical colours, invisible) to 21:1 (pure black on pure white). Because luminance weights green most heavily, two colours that look similarly bright can still have very different contrast.

Tips for passing

If a pairing fails, darken the text or lighten the background (or vice versa) until the ratio clears the threshold โ€” small lightness changes move the number a lot near the limit. Avoid relying on colour alone to convey meaning, and remember that placeholder text, disabled states and text over images also need to meet contrast. To build an accessible palette from scratch, the full ColorBloom tool lets you generate colours and check HEX/RGB values as you go.

FAQ

Frequently asked questions

What ratio passes WCAG AA?

4.5:1 for normal text and 3:1 for large text. AAA needs 7:1 and 4.5:1.

What is considered large text?

At least 24px regular, or 18.66px (14pt) bold. It has a lower contrast requirement.

Does contrast depend on font size?

The requirement does โ€” large text needs less contrast. The ratio between two colours is the same regardless of size.

Is it free and private?

Yes. It runs entirely in your browser with no sign-up, and nothing you enter is uploaded.

More color tools

HEX to RGB converter ยท Palette extractor, generator & CSS export