Image Color Lab

Accessibility

Contrast checker for text and backgrounds

WCAG asks for a 4.5:1 ratio for normal text and 3:1 for large text. Enter a text and background color to see the exact ratio, all four verdicts and the closest passing shade.

Ratios update as you type.

Contrast ratio

—

The quick brown fox jumps over the lazy dog. 0123456789

AA normal: —AA large: —AAA normal: —AAA large: —

How the ratio is calculated

Each color is converted to relative luminance using the WCAG formula, then the ratio is (lighter + 0.05) / (darker + 0.05). A ratio of 1:1 means identical colors; 21:1 is black on white. AA requires 4.5:1 for normal text and 3:1 for large text; AAA raises those to 7:1 and 4.5:1.

If the pair fails, the tool walks the text color's lightness toward the opposite end and reports the first value that passes 4.5:1, so you get a usable fix instead of just a red badge. Sampling a color from a screenshot first?Use the image color picker.

Large text, controls and focus rings

WCAG calls text large at 18.66px bold or 24px regular, and asks for 3:1 instead of 4.5:1 at that size — this is the “AA large” badge. The same 3:1 threshold applies to user-interface components under 1.4.11: an input's border, a button's edge, the boundary of a focus ring and the parts of an icon that carry meaning. Placeholder text and disabled controls are the usual exceptions, but a placeholder still needs to be readable enough to understand the field.

A ratio is necessary and not sufficient. Text over a photo, a gradient or a translucent panel changes as the image behind it changes, so check the lightest and the darkest part of that background. Confirm that a link is not identified by color alone, that a chart does not encode meaning only as a hue, and that focus is always visible.