Colors
Pick the text and background colors to compare.
Check color contrast ratios for free. Pick text and background colors and see the WCAG ratio with AA and AAA pass/fail for normal and large text.
Pick the text and background colors to compare.
The tool computes relative luminance for both colors, then the WCAG contrast ratio: (lighter + 0.05) divided by (darker + 0.05). The result ranges from 1:1 (identical) to 21:1 (black on white).
Results are graded against WCAG 2.x thresholds: 4.5:1 for normal text AA, 3:1 for large text AA, and the stricter AAA levels.
Nudge the text darker or the background lighter until the ratio passes; small moves help a lot near the threshold. The live preview shows both normal and large text so you see the effect instantly.
Brand colors that fail as text often work fine as large headings or graphic accents, which only need 3:1. Reserve the strict 4.5:1 bar for body copy.