Contrast checker
Check color pairs against WCAG text thresholds.
About Contrast checker
Test whether a text color has enough contrast against its background under the supported WCAG contrast calculation. Use the same colors that will actually appear in the interface.
Steps, example, and limitations
How to use it
- Enter the foreground and background colors.
- Review the contrast ratio and the normal- and large-text results.
- Adjust the colors and check the sample again.
Example
Input
Foreground: #000000 Background: #ffffff
Result
Contrast ratio: 21:1
Things to know
- Contrast is one part of accessibility, not a complete accessibility audit.
- Transparency, background images, text size, and font weight can affect the real use case. Test the final rendered design too.