Signlamp Add to Chrome

Color Contrast Checker

Enter a text color and a background color to get their contrast ratio and whether they meet the WCAG 2.2 minimums for AA and AAA. If the pair falls short, the checker suggests the nearest text color that reaches 4.5:1 and 7:1. It runs in your browser; the colors are not sent anywhere.

Check two colors

Use #RGB or #RRGGBB, with or without the #. Transparent colors are not supported.

Contrast ratio

–

WCAG 2.2 results for this pair
RequirementMinimumResult
Normal text, AA (SC 1.4.3)4.5:1–
Normal text, AAA (SC 1.4.6)7:1–
Large text, AA (SC 1.4.3)3:1–
Large text, AAA (SC 1.4.6)4.5:1–
UI components and graphics, AA (SC 1.4.11)3:1–

Preview

Normal text (16px). The quick brown fox jumps over the lazy dog.

Large text (24px)

Large bold text (18.66px bold)

Nearest passing text color

Keeps the hue and saturation of your text color and changes only its lightness, in whichever direction needs the smaller change.

The address bar keeps both colors (for example #fg=0b57d0&bg=ffffff), so you can bookmark or share a result.

Check every color pair on a page at once

This page checks one pair of colors. Signlamp, a Chrome extension, runs axe-core’s color-contrast rule on the text of the page you have open and lists the text elements below the WCAG AA minimum, together with other automated accessibility checks. Page content stays in your browser.

Add to Chrome — it’s free See a sample report

Free shows issue counts and the top 3 issues. Pro lists every affected element with its measured ratio and colors.

How the contrast ratio is calculated

WCAG 2.x compares the relative luminance of the two colors. Each sRGB channel is scaled to 0–1 and linearized: values up to 0.04045 are divided by 12.92; larger values become ((value + 0.055) / 1.055)2.4. Relative luminance is 0.2126 × R + 0.7152 × G + 0.0722 × B, from 0 for black to 1 for white.

The contrast ratio is (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color. It runs from 1:1 (the same color) to 21:1 (black on white). WCAG does not allow rounding up: #777777 on white is 4.47:1 and does not meet 4.5:1, while #767676 is 4.54:1 and does. This checker shows the ratio cut off at two decimals and compares the unrounded value.

WCAG 2.2 contrast requirements

Minimum contrast ratios by success criterion
Success criterionLevelNormal textLarge text
1.4.3 Contrast (Minimum)AA4.5:13:1
1.4.6 Contrast (Enhanced)AAA7:14.5:1
1.4.11 Non-text ContrastAA3:1 for the visual parts needed to identify UI components and their states (borders of inputs, focus indicators, icons) and for the parts of graphics needed to understand them

Large text means at least 18 point, or at least 14 point when bold. In CSS pixels that is about 24px, or about 18.66px bold. Text that is part of a logo, purely decorative, or in an inactive (disabled) control has no contrast requirement under 1.4.3 and 1.4.6.

What this checker does not do