Contrast Checker
Checks contrast ratios according to WCAG 2.1.
Input
Output
What is Contrast Checker?
Contrast Checker calculates relative-luminance contrast between two opaque, six-digit sRGB hex colors and shows one text-contrast rating. It evaluates the pair you enter; it does not inspect a website’s actual font size, font weight, transparency, background image or other accessibility requirements.
How to use Contrast Checker
Enter #000000 as Text color and #ffffff as Background color, then choose Check. Expect 21.00:1 with AAA (Normal Text). Set both colors to #ffffff and check again: expect 1.00:1 and Insufficient. Three-digit shorthand such as #fff produces an invalid-color message.
When is Contrast Checker useful?
For ordinary text, the displayed AA threshold is 4.5:1 and AAA is 7:1. The AA large-text threshold is 3:1. Large text means at least 18 pt, or 14 pt bold; this page does not verify those sizes. It shows one label rather than every applicable criterion: a pair passing AA for normal text can also pass the enhanced large-text threshold without that second label being shown.
Example
Try #777777 on #ffffff. Expect about 4.48:1 and AA (Large Text), so the pair misses AA for ordinary text. Changing the foreground to #767676 gives about 4.54:1 and AA (Normal Text). Classification uses the unrounded result; the displayed ratio is rounded to two decimals.
Practical notes
Check the final rendered context separately. Alpha blending, gradients, image backgrounds, focus indicators and non-text controls need their own assessment. A passing text-color pair is not a claim that the whole page conforms to WCAG. Calculations run locally without fetching a target page. The W3C explanations for minimum text contrast and enhanced text contrast describe the criteria behind the labels.