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.

Live preview

The quick brown fox jumps over the lazy dog

Contrast ratio21.00:1
AA — normal textPass
AA — large text(uses the large text toggle)Pass
AAA — normal textPass
AAA — large text(uses the large text toggle)Pass

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 colorContrast ratioAA — normal textAA — large textAAA — normal text
#00000021.00:1PassPassPass
#22222215.91:1PassPassPass
#33333312.63:1PassPassPass
#4444449.74:1PassPassPass
#5555557.46:1PassPassPass
#5959597.00:1PassPassPass
#6666665.74:1PassPassFail
#7070704.95:1PassPassFail
#7575754.61:1PassPassFail
#7676764.54:1PassPassFail
#7777774.48:1FailPassFail
#8080803.95:1FailPassFail
#8888883.54:1FailPassFail
#9494943.03:1FailPassFail
#9999992.85:1FailFailFail
#AAAAAA2.32:1FailFailFail
#BBBBBB1.92:1FailFailFail
#CCCCCC1.61:1FailFailFail

White (#FFFFFF) text on background color

Background colorContrast ratioAA — normal textAA — large textAAA — normal text
#FF00004.00:1FailPassFail
#DC26264.83:1PassPassFail
#0080005.14:1PassPassFail
#16A34A3.30:1FailPassFail
#0000FF8.59:1PassPassPass
#2563EB5.17:1PassPassFail
#FFA5001.97:1FailFailFail
#EA580C3.56:1FailPassFail
#8000809.42:1PassPassPass
#9333EA5.38:1PassPassFail
#FFC0CB1.54:1FailFailFail
#DB27774.60:1PassPassFail
#0080804.77:1PassPassFail
#FFFF001.07:1FailFailFail
#8080803.95:1FailPassFail

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.