Checking contrast ratios
Input a Text Color and a Background Color using HEX codes or the color picker. The checker calculates the exact contrast ratio between the two colors, up to a maximum of 21:1 for pure black against pure white.
You can use the swap button between the inputs to quickly test the reverse pairing. The mathematical ratio remains identical regardless of which color is used as the foreground or background.
Visual preview and levels
The central preview area applies your selected colors to standard text elements, headings, and buttons so you can evaluate legibility in a real layout. The exact contrast ratio is displayed in the top right corner of the preview.
Below the preview, the results table checks your ratio against five distinct WCAG 2.1 requirements. It verifies AA and AAA levels for both normal text and large text (18pt+), along with the standard for UI elements and graphics like borders and icons.
Auto-fixing failing colors
If your chosen pairing fails any of the required contrast checks, the status bar will provide options to resolve the errors. You can choose to either Fix Background or Fix Text.
These actions will automatically adjust the lightness of the targeted color to meet the strictest possible WCAG threshold while preserving your original hue. If reaching the AAA standard is mathematically impossible for that specific hue, the tool will optimize the color for AA compliance and prompt you to adjust the other color.