Skip to content

Color Contrast Checker

Embed

Paste this where you want Color Contrast Checker on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/color-contrast-checker/" width="100%" height="500" frameborder="0" loading="lazy" title="Color Contrast Checker"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/color-contrast-checker/">Color Contrast Checker</a> by BrowserUtils</p>

Check WCAG contrast ratios between two colors.Runs in this tab.

Large Text Sample

Normal text sample — The quick brown fox jumps over the lazy dog.

21.00:1
PASS — Normal Text AA (4.5:1)
PASS — Normal Text AAA (7:1)
PASS — Large Text AA (3:1)
PASS — Large Text AAA (4.5:1)

Next step

About Color Contrast Checker

Free online color contrast checker. Verify WCAG 2.1 contrast ratios for text and background color combinations to ensure accessibility compliance. It runs in your browser. Nothing is sent to a server.

Questions

What WCAG contrast ratio is required?
WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text (AA) and 7:1 for enhanced contrast (AAA). Large text requires 3:1 for AA and 4.5:1 for AAA.
How is contrast ratio calculated?
Contrast ratio is calculated using the relative luminance of two colors according to the WCAG 2.1 formula: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color luminance.
What counts as large text under WCAG?
Large text is defined as 18pt (24px) and above at normal weight, or 14pt (18.66px) and above at bold weight. Large text has lower contrast requirements because it is easier to read.
How do I fix a failing contrast ratio?
Darken the text color or lighten the background (or vice versa) until the ratio meets the 4.5:1 threshold for AA. This tool shows the ratio in real time so you can adjust colors until they pass.

More in CSS & Design

All 22 css & design