Color contrast checker for text and captions
Last updated
Pick a text color and a background, or take the background from a picture by clicking it, and read the contrast ratio as WCAG 2.2 measures it, from 1:1 to 21:1. Normal text needs at least 4.5:1 for AA and 7:1 for AAA; large text needs 3:1 and 4.5:1. It runs in your browser.
Normal text: fresh bagels every morning.
Large text: open at six.
4.22:1
- AA, normal text, at least 4.5:1Fails
- AA, large text, at least 3:1Passes
- AAA, normal text, at least 7:1Fails
- AAA, large text, at least 4.5:1Fails
On this background, white text is 4.22:1 and black text 4.97:1.
How to check color contrast
- Pick the text color and the background color, or type their hex codes.
- Or drop a picture and click it to take the background from it.
- Read the ratio and which WCAG levels it meets, for normal and large text.
What contrast ratio does text need?
WCAG 2.2 asks for at least 4.5:1 between text and its background (level AA), or 7:1 for the stricter AAA. Large text needs 3:1 for AA and 4.5:1 for AAA. Logos and pure decoration have no requirement.
What counts as large text?
At least 18 point, or 14 point when bold, as WCAG's understanding document puts it. On screen that is about 24 and 18.7 CSS pixels.
How do I keep captions readable over video?
A video's background changes from frame to frame, so check the caption color against the lightest and the darkest parts of the shot it sits over. A dark box behind white text keeps one known background and so one known ratio.
How is the ratio worked out?
Each color's relative luminance is worked out from its red, green and blue values, then the lighter one plus 0.05 is divided by the darker one plus 0.05. The checker cuts the result to two places rather than rounding it, so 4.499 shows as 4.49 and fails 4.5.
Is my picture uploaded?
No. A picture you drop is read in your browser to pick colors from it, and nothing is sent.
Sources
- W3C WAI: Understanding Success Criterion 1.4.3, Contrast (Minimum)Checked November 27, 2026
- W3C WAI: Understanding Success Criterion 1.4.6, Contrast (Enhanced)Checked November 27, 2026
Make a short in ViewGum from a topic, with captions set on a readable box
Making videos for a business? See what to post, by industry, and the plans and prices.