React fix guide
Fix Low color contrast on React
Text that blends into the background is hard to read for people with low vision and in bright sunlight.
Check your live page
Canonical issue page: Low color contrast →
What this issue means
What this issue is
Automated tools compare foreground and background colors to thresholds (often 4.5:1 for normal text under WCAG AA). Thin fonts and images behind text complicate measurement.
Why it matters
Contrast affects readability for many users, not only those with diagnosed vision disabilities. Marketing palettes sometimes prioritize brand over legibility.
Fixes
Darken text, lighten background, or add a solid backdrop behind text on busy images. Re-check hover and disabled states.
How to fix on React
Tailwind opacity utilities reduce contrast; verify computed colors.
How to fix
Increase contrast to at least 4.5:1 for normal text (AA). Test hover, disabled, and error states.
Add a solid scrim behind text on photos instead of relying on busy backgrounds.
Code example
<p className="text-slate-900">Body copy with sufficient contrast on white background</p>
Related: 1.4.3 Contrast (Minimum).
Other platforms
Related guides
TestAccessibility · Programmatic fix page · localhost:3001