Foreground and Background Colors Without Enough Contrast
WCAG Focus: WCAG 1.4.3 (AA), 1.4.6 (AAA), 1.4.11 (AA)
Light gray body copy on white backgrounds, pastel buttons with white labels, and text placed directly over bright hero photography remain among the most widespread accessibility failures on WordPress websites. Low contrast makes reading exhausting or impossible for people with low vision, color blindness, or anyone viewing a screen in bright daylight.
Why This Pattern Violates WCAG
WCAG 1.4.3 Contrast (Minimum, Level AA) requires at least a 4.5:1 contrast ratio for normal text and 3:1 for large text (18pt / 24px regular, or 14pt / 18.67px bold).
WCAG 1.4.11 Non-text Contrast (Level AA) requires at least 3:1 contrast for active user interface components (such as input borders and focus outlines) and meaningful graphical objects.
Code Comparison
Inaccessible Low-Contrast Button (2.1:1)
<button style="background-color: #93c5fd; color: #ffffff;">Submit Form</button>
Compliant High-Contrast Button (8.6:1)
<button style="background-color: #1e3a8a; color: #ffffff;">Submit Form</button>
How to Fix It in WordPress
- Audit theme palette tokens and Gutenberg block color overrides to ensure 4.5:1 for normal text and 3:1 for large text.
- Add solid backgrounds or dark gradient scrims behind text overlaid on hero images or video.
- Check placeholder text, captions, footer links, and form borders—not just main body text.
Finding This Issue Automatically
Editors routinely apply custom Gutenberg block colors or inline styles that drift away from an accessible theme palette. The WP ADA Compliance Check plugin calculates foreground-to-background contrast ratios across your WordPress posts, widgets, and CSS rules, flagging every failing pair so you can fix color contrast before it alienates readers.
WCAG References & Supporting Materials
WCAG Success Criteria
- Understanding WCAG 1.4.3 Contrast (Minimum) (Level AA)
- Understanding WCAG 1.4.6 Contrast (Enhanced) (Level AAA)
- Understanding WCAG 1.4.11 Non-text Contrast (Level AA)
Supporting Documentation & Guides
- W3C Technique G18: Ensuring a contrast ratio of at least 4.5:1 for text — Guidance on meeting minimum foreground-to-background contrast ratios under WCAG 1.4.3.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

