Overview
Text must have a contrast ratio of at least 4.5:1 against its background (3:1 for large text ≥18pt or bold ≥14pt).
The Problem
This pattern is inaccessible — avoid it.
The Fix
Use this accessible pattern instead.
Step-by-step
Use a contrast checker (WebAIM, browser DevTools, or ADAGuard) to measure text/background pairs.
For normal text (<18pt, not bold): minimum ratio 4.5:1.
For large text (≥18pt or bold ≥14pt): minimum ratio 3:1.
Adjust the foreground or background color until the ratio is met.
Don't rely on color alone to convey meaning — use icons, patterns, or labels too.
Framework Notes
How to apply this fix in your stack.