Check the contrast ratio between foreground and background colors for common text-accessibility thresholds.
How to check a color pair
Choose foreground and background colors or paste their HEX values. Three-digit shorthand such as #fff is accepted. Results update as you edit; invalid text clears the pass/fail result until both colors are valid.
How to read the result
The ratio ranges from 1:1 to 21:1. The tool reports common WCAG text thresholds, including 4.5:1 for normal text and 3:1 for large text.
Contrast is one accessibility requirement. Passing a ratio does not by itself make an interface fully accessible.
What counts as large text?
For these WCAG thresholds, large text is at least 18 pt regular or 14 pt bold, approximately 24 CSS pixels or 18.67 CSS pixels respectively. Apply the threshold to the actual text size and weight, not the appearance of this preview.
Pass/fail uses the unrounded ratio. The displayed ratio is rounded to three decimals, so a value displayed at a boundary can still fail. See W3C’s minimum contrast explanation and enhanced contrast explanation.
What this checker covers
This evaluates opaque sRGB foreground/background pairs. It does not scan a webpage or account for alpha transparency, background images, gradients, antialiasing, focus states or other accessibility criteria. If you only need to choose black or white text for a background, use the Contrast Color Finder.