#101828 on #ffffff
- AA normal text
- Pass
- AA large text
- Pass
- AAA normal text
- Pass
WCAG AA uses 4.5:1 for normal text and 3:1 for large text. Also check focus, hover, disabled, and icon states.
Use this free color contrast checker to compare two hex colors, calculate contrast ratio, and see WCAG AA and AAA pass or fail results.
#101828 on #ffffff
WCAG AA uses 4.5:1 for normal text and 3:1 for large text. Also check focus, hover, disabled, and icon states.
Check text color against a page background before publishing.
Compare brand colors against WCAG AA and AAA thresholds.
Test button, label, and navigation color pairs.
Quickly reject low-contrast combinations during design work.
High contrast ratio
AA pass/fail check
Contrast ratio
Plain-language answers about when to use the tool, what it does with your inputs, what to double-check, and how privacy works.
Use it when your task matches one of these common needs: Check text color against a page background before publishing. Compare brand colors against WCAG AA and AAA thresholds. It works best when you already know the values, dates, units, or settings the page asks for.
In plain language: The checker converts hex colors to sRGB, calculates relative luminance, then uses the WCAG contrast formula: (lighter + 0.05) / (darker + 0.05). The examples on the page are there so you can compare your inputs with a filled-out calculation before copying the answer.
Contrast ratio is one accessibility check. Also review font size, focus states, hover states, icons, disabled controls, and real page context. Also check that you used the right unit, date, scale, or mode because small input changes can change the result.
No. The calculator runs in your browser tab. Your recent answers stay only on the page while you use it, and they are not sent to a server.