A11y Color Contrast Checker

Color contrast is an essential aspect of accessibility in your application. Selecting a foreground and background color with a large enough contrast will ensure that your web application is legible to all users. The sooner you understand color contrast specifications the better decisions you will make, not only in terms of your web applications, but also your branding as a whole.

Ratio

0:1

WCAG defines two ratings for color contrast: AA rating (the minimum ratio required for a passing contrast) and AAA rating (the enhanced ratio and best accessibility rating). There are also 3 types of content (body text, large-scale text, and graphical objecs & user interface components) which WCAG guidelines have defined ratios for. Ideally, we should always aim to have at least a AA rating in all three content types. It's also important to note that there is no AAA rating for the last content type (graphical objecs & active user interface components).

Passing ratios
Type of contentMinimum ratio (AA rating)Enhanced ratio (AAA rating)
Body text4.5 : 17 : 1
Large-scale text3 : 14.5 : 1
Active user interface components & graphical objects3 : 1

Body text


WCAG AA:
Failing
WCAG AAA:
Failing

The quick brown fox jumped over the...

Large-scale text


WCAG AA:
Failing
WCAG AAA:
Failing

The quick brown fox jumped over the...

Active user interface components & graphical objects


WCAG AA:
Failing

Additional Resources:


TOP

IN NEED OF DEVELOPMENT SERVICES?

I'm always looking for new coding opportunities! Think we can build your ideas together, need my resume, or need to update code? Don't hesitate to reach out below!


2024 ❖ Designed & developed by Leonardo Oliveira