
Check color contrast
See if text on a background is readable. Check a pair of colors against WCAG AA and AAA.
Sample text on this background.
17.48:1. Passes AA for normal text. Passes AAA.
What you can do
- See the contrast ratio for a pair of colors.
- Check whether it passes WCAG AA.
- Check whether it passes AAA.
How this works
Enter the text color and the background as HEX, such as #1c1917, or as rgb(28, 25, 23) or rgb(28 25 23). The ratio runs from 1:1 for the same color to 21:1 for black on white. It is cut to two decimals, not rounded up, so 4.49 is a fail.
The pass marks are for normal body text. WCAG accepts 3:1 for large text, meaning about 24 pixels, or about 19 pixels in bold.
A see-through color, such as rgba() with an alpha below 1, is not checked, because it looks different on each background. Enter the solid color you actually see on the screen instead.
Common Questions
Which text size is this?
Normal text. AA needs 4.5:1. AAA needs 7:1.
Does anything leave this browser?
No. The work stays on this device.
