Meet contrast expectations
Text and meaningful interface elements need enough contrast against their background. WCAG defines minimum ratios that keep content readable across a range of vision and viewing conditions.
Don't rely on color alone
Color should never be the only way information is conveyed. Pair it with text, icons, or patterns so the meaning survives for people who can't distinguish certain colors.
Test real states
Check contrast for hover, focus, disabled, and error states—not just the default—since these are easy to overlook and often fall short.