Color contrast checker

Check whether your text stands out against its background.

Graphics Stateless

Maximum input length per field: 7 Unicode code points. See the operation limits in the instructions.

Quick guide

Try it with your own data when you’re ready.

Try an example

You enter

Text color (HEX)
#000
Second color (HEX)
#fff

You get

Contrast ratio
21.0000:1
AA — normal text
✓
AA — large text
✓
AAA — normal text
✓
AAA — large text
✓
How it works & limits

Enter opaque 3- or 6-digit hex colors. Decisions use the unrounded ratio: AA requires 4.5 for normal text or 3 for large text; AAA requires 7 or 4.5.

Large means at least 18pt, or 14pt bold. ✓ meets the threshold; ✗ does not. This checks colors, not full accessibility.