Why use this tool?
- See which text-size thresholds your color pair meets.
- Preview text at different sizes and weights before assigning a token.
- Explore lightness adjustments when a body-text pair falls below 4.5:1.
Check text and background contrast against WCAG AA and AAA thresholds. Preview text sizes, explore suggested color fixes, and compare APCA scores.
Runs locally in your browser
Saturation 55 percent, brightness 20 percent, hue 221 degrees.
Saturation 0 percent, brightness 100 percent, hue 0 degrees.
12px regular — the quick brown fox jumps over the lazy dog.
16px regular — the quick brown fox jumps over the lazy dog.
19px bold — the quick brown fox jumps over the lazy dog.
24px regular — the quick brown fox jumps over the lazy dog.
36px bold — the quick brown fox jumps over the lazy dog.
WCAG 2.1 / 2.2 contrast ratio
16.27:1
Clears AAA for normal text.
APCA lightness contrast
Lc 103.2
Dark text on light. Comfortable for body text at any weight, including small sizes.
AA normal text
Text below the large-text size threshold. Needs 4.5:1.
AA large text
At least 24px, or about 18.67px bold. Needs 3:1.
AA interface
Required visual boundaries, icons, and states against adjacent colors. Needs 3:1; exceptions apply.
AAA normal text
Enhanced body copy. Needs 7:1.
AAA large text
Enhanced headings. Needs 4.5:1.
The same pair as it appears to readers with each type of color vision deficiency.
Typical vision
16.27:1 · Unmodified reference
Deuteranomaly
16.40:1 · Fixed 0.6-severity simulation
Deuteranopia
16.43:1 · Red-green simulation
Protanomaly
16.10:1 · Red-green simulation
Protanopia
15.91:1 · Red-green simulation
Tritanomaly
16.18:1 · Fixed 0.6-severity simulation
Tritanopia
16.19:1 · Illustrative simulation
Achromatomaly
16.27:1 · Illustrative simulation
Achromatopsia
16.29:1 · Illustrative simulation
Complete tool guide
Check the contrast ratio between an opaque text color and its background. The WCAG results compare the pair with AA and AAA thresholds used in WCAG 2.1 and 2.2. The separate APCA score is supplementary information, not a WCAG 2.x conformance result.
Your input is processed in the current browser tab and is not sent to the application server.
Pick the text and background colors, or paste values you already have.
Read the WCAG ratio and the APCA lightness contrast score.
Check the sample block at the size and weight you actually plan to use.
If the pair fails, apply one of the suggested passing colors.
The ratio ranges from 1:1 for equal luminance to 21:1 for black and white. A displayed rounded value is for reading; pass/fail uses the unrounded ratio.
Compare normal and large text thresholds. Large text is at least 24 CSS pixels, or about 18.67 CSS pixels when bold. Selecting a sample size changes the preview, not the colors.
Suggestions adjust lightness while trying to retain the hue. They target 4.5:1 for normal text at AA, not every accessibility requirement.
Start with: Black text #000000 on white #FFFFFF
21.00:1 — passes AA and AAA normal textThis is the maximum WCAG contrast ratio. It does not, by itself, validate the rest of a page.
Start with: Gray text #777777 on white #FFFFFF
4.48:1 — fails AA normal text; passes AA large textA ratio below 4.5:1 fails the normal-text threshold even when it looks close. Retest a suggested color against its intended background.
AA text needs 4.5:1, or 3:1 for large text. AAA text needs 7:1, or 4.5:1 for large text. Check the applicable threshold before choosing a pair.
WCAG 1.4.11 generally requires 3:1 against adjacent colors for visual information needed to identify controls, states, and meaningful graphics. Decorative borders are not automatically subject to this rule. Inactive controls are exempt from these contrast requirements; placeholder text in an active input is not.
The APCA Lc sign indicates dark-on-light or light-on-dark polarity. Its interpretation depends on typography and the APCA version. Treat the tool’s size hints as approximate. WCAG 3 is under development; an APCA score does not establish WCAG 2.1 or 2.2 conformance.
No. It checks color pairs against selected contrast thresholds. WCAG conformance also depends on keyboard access, structure, text alternatives, focus behavior, and other criteria.
The checker evaluates opaque RGB colors. For translucent text or backgrounds, determine the composited color over the actual backdrop and test that pair.
Use the WCAG thresholds for WCAG 2.x contrast checks. APCA is an additional typography-dependent signal and is not a replacement for those requirements.
Keep working
Continue with another focused tool from the same collection.