The color contrast ratio calculator measures accessibility compliance for text colors. Enter foreground and background hex codes to get the exact contrast ratio and WCAG AA/AAA pass/fail status for normal text, large text, and UI components.

Sample Text — The quick brown fox
Small text sample — 14px regular weight
Contrast Ratio
21:1
WCAG AA (4.5:1 normal / 3:1 large)
WCAG AAA (7:1 normal / 4.5:1 large)