1 min read•Audience: All
Color Contrast Checker
Check a foreground and background color pair against WCAG 2 contrast thresholds for normal and large text.
Where to start#
Try it with an example#
Set foreground to #000000 and background to #ffffff. Read the contrast ratio, then replace the foreground with the actual button label color from your design.
Step-by-step walkthrough#
- Enter both hex colors or select them with the color inputs.
- Compare the ratio with the required threshold for the size and weight of your text.
- Check alternate states and dark-mode colors separately, especially on buttons and links.
Verify the result#
Black on white gives 21:1. Read the normal-text or large-text result that applies to the label. For a transparent label over an image, check the actual composited colors where the text appears.