“A stunning aesthetic is useless if a significant portion of your visitors cannot read your text. Learn the mathematical contrast ratios behind WCAG AA and AAA compliance.”
1. The 4.5:1 and 7:1 Standards
Under Web Content Accessibility Guidelines (WCAG) 2.1 Level AA, normal body text must achieve a minimum relative luminance contrast ratio of 4.5:1 against its background. For large headings (18pt or 14pt bold), the threshold is 3:1. For enhanced Level AAA, body text must reach 7:1.
Use our Color Palette Generator to preview foreground text readability across all background shades in both dark and light modes.
Frequently Asked Questions
While it provides the highest mathematical contrast (21:1), harsh pure black on stark white can cause eye strain for users with dyslexia or photophobia. Dark slate or off-black (#111827) on clean off-white (#F9FAFB) is widely favored in modern design systems.
Did you find this guide useful?
Share it with your teammates and network.