← All tools/Generators/Design/Color Contrast Ratio Calculator
Color Contrast Ratio Calculator
Does this text colour work on this background? Check the ratio and the WCAG verdict.
WCAG 2.1 ratios. AA is the usual target for body text; AAA is the stricter level.
Contrast ratio
How it works
L = 0.2126R + 0.7152G + 0.0722B (linearised sRGB channels) Ratio = (L lighter + 0.05) ÷ (L darker + 0.05) WCAG AA: 4.5:1 normal text, 3:1 large text · AAA: 7:1 normal, 4.5:1 large
Worked example: black #000000 on white #FFFFFF gives the maximum possible ratio, 21.00:1 — passing AA and AAA. Purple #673DE6 on white gives 6.20:1 — passing AA for normal text, but not AAA.
Frequently asked questions
What is a good contrast ratio?
For normal body text, aim for at least 4.5:1 — the WCAG AA level. Large text needs 3:1, and the stricter AAA level needs 7:1.
What counts as large text?
In WCAG, large text is 18 pt or bigger, or 14 pt bold and bigger. Everything smaller is normal text and needs the higher ratio.
Why does the ratio stop at 21:1?
Black on white is the highest contrast possible — pure black has a luminance of 0 and pure white 1, so (1 + 0.05) ÷ (0 + 0.05) = 21.
Do I need to meet AAA?
Usually not. AA is the level most laws and standards require. AAA is a bonus — worth aiming for on body text, but not required.
More tools
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.