Color Contrast Checker

Test text and background colours against WCAG 2.2.

Runs in your browser Color & CSS Free · No account

Input

Processed locally

This tool runs entirely in your browser. The data you paste or load is never uploaded.

Result

Enter your input, then run the tool.

About this tool

Calculates the WCAG contrast ratio for a text and background pair and states whether it passes AA and AAA at normal and large sizes. A live sample shows how the combination actually reads.

How to use it

  1. Set the text colour and the background colour.
  2. Read the ratio and the AA/AAA results.
  3. Adjust the colours until both pass for the sizes you use.

Frequently asked questions

What ratio do I need?
AA requires 4.5:1 for normal text and 3:1 for large text (18.66px bold or 24px). AAA raises those to 7:1 and 4.5:1.
Does the checker consider font weight?
Yes, the large-text threshold reflects WCAG’s definition of large type, and the sample uses both weights.

Keep going

More in this category