Color Contrast Checker
Check whether a text and background color combination meets WCAG AA or AAA accessibility contrast ratios, instantly in your browser. Audit a brand color pairing, verify a dark mode scheme, or confirm a button's contrast before shipping a design.
Large text has a lower required contrast ratio under WCAG. This affects the "AA large text" and "AAA large text" checks below.
The quick brown fox jumps over the lazy dog
Examples
Checking body text
Enter your body text color and page background color with the large text toggle off. Aim for at least AA (4.5:1) so paragraphs stay readable for users with low vision.
Checking a bold heading
Turn on the large text toggle for headings that are 18pt or larger, or 14pt and bold. These only need a 3:1 ratio to pass AA, so a lighter color may still work.
Auditing a brand color pairing
Paste in your brand's accent color as the text color and your card background to see if the pairing is accessible before using it across a design system.
Checking a button or form field border
Enter the colors for a button's border or an input field's outline against the page background. Under WCAG 2.1, non-text UI components need at least a 3:1 ratio to stay visible for low-vision users.
Verifying a dark mode color scheme
Swap in your dark theme's text and background colors (like a light gray on near-black) to confirm contrast still passes AA, since dark palettes are easy to get subtly wrong.
Quick reference
Text color on white (#FFFFFF) background
| Text color | Contrast ratio | AA — normal text | AA — large text | AAA — normal text |
|---|---|---|---|---|
| #000000 | 21.00:1 | Pass | Pass | Pass |
| #222222 | 15.91:1 | Pass | Pass | Pass |
| #333333 | 12.63:1 | Pass | Pass | Pass |
| #444444 | 9.74:1 | Pass | Pass | Pass |
| #555555 | 7.46:1 | Pass | Pass | Pass |
| #595959 | 7.00:1 | Pass | Pass | Pass |
| #666666 | 5.74:1 | Pass | Pass | Fail |
| #707070 | 4.95:1 | Pass | Pass | Fail |
| #757575 | 4.61:1 | Pass | Pass | Fail |
| #767676 | 4.54:1 | Pass | Pass | Fail |
| #777777 | 4.48:1 | Fail | Pass | Fail |
| #808080 | 3.95:1 | Fail | Pass | Fail |
| #888888 | 3.54:1 | Fail | Pass | Fail |
| #949494 | 3.03:1 | Fail | Pass | Fail |
| #999999 | 2.85:1 | Fail | Fail | Fail |
| #AAAAAA | 2.32:1 | Fail | Fail | Fail |
| #BBBBBB | 1.92:1 | Fail | Fail | Fail |
| #CCCCCC | 1.61:1 | Fail | Fail | Fail |
White (#FFFFFF) text on background color
| Background color | Contrast ratio | AA — normal text | AA — large text | AAA — normal text |
|---|---|---|---|---|
| #FF0000 | 4.00:1 | Fail | Pass | Fail |
| #DC2626 | 4.83:1 | Pass | Pass | Fail |
| #008000 | 5.14:1 | Pass | Pass | Fail |
| #16A34A | 3.30:1 | Fail | Pass | Fail |
| #0000FF | 8.59:1 | Pass | Pass | Pass |
| #2563EB | 5.17:1 | Pass | Pass | Fail |
| #FFA500 | 1.97:1 | Fail | Fail | Fail |
| #EA580C | 3.56:1 | Fail | Pass | Fail |
| #800080 | 9.42:1 | Pass | Pass | Pass |
| #9333EA | 5.38:1 | Pass | Pass | Fail |
| #FFC0CB | 1.54:1 | Fail | Fail | Fail |
| #DB2777 | 4.60:1 | Pass | Pass | Fail |
| #008080 | 4.77:1 | Pass | Pass | Fail |
| #FFFF00 | 1.07:1 | Fail | Fail | Fail |
| #808080 | 3.95:1 | Fail | Pass | Fail |
Frequently asked questions
What do AA and AAA mean?
AA and AAA are conformance levels defined by the WCAG (Web Content Accessibility Guidelines). AA is the standard most websites and laws (like the ADA) require; AAA is a stricter, optional level for maximum accessibility.
Why does large text need a lower ratio?
Larger, bolder text is easier to distinguish from its background even with less contrast, so WCAG relaxes the requirement for text that's 18pt or larger (or 14pt and bold) to 3:1 for AA and 4.5:1 for AAA, instead of 4.5:1 and 7:1.
Who benefits from good color contrast?
People with low vision, color blindness, or age-related vision changes benefit most, but good contrast also helps everyone reading on a low-quality screen, in bright sunlight, or when tired.
How is the contrast ratio calculated?
This tool uses the official WCAG 2.x formula: each color's relative luminance is computed from its linearized sRGB channels, then the ratio is (lighter luminance + 0.05) divided by (darker luminance + 0.05), giving a value from 1:1 to 21:1.
Does passing AA for text also mean my UI components pass?
No, they're separate checks. Text contrast is covered by SC 1.4.3 (AA) and 1.4.6 (AAA), but non-text elements like icons, button borders, and form field outlines fall under SC 1.4.11, which only requires 3:1 regardless of AA or AAA level.
Why does this tool only need a hex color, not RGB or HSL?
Hex is just the most common way to copy a color from design tools and browser dev tools, but it represents the same underlying RGB values used in the luminance calculation — entering #3366cc is mathematically equivalent to entering rgb(51, 102, 204).
My colors pass contrast but still look hard to read — why?
Contrast ratio is necessary but not sufficient for readability. Factors like font weight, letter spacing, line length, and the specific hues involved (some color pairs with mathematically high contrast can still feel visually harsh) aren't captured by the ratio alone.