#52525b on #000000 contrast ratio
2.71:1
Dark grey (Tailwind zinc-600) text (#52525b) on a black background (#000000) fails every WCAG 2.2 contrast threshold.
Swap: #000000 on #52525bLarge text sample
Normal body text in #52525b on #000000. The quick brown fox jumps over the lazy dog.
WCAG 2.2 results
| Normal text — WCAG 1.4.3 AA | 4.5:1 | Fail |
|---|---|---|
| Large text — WCAG 1.4.3 AA | 3:1 | Fail |
| UI components & icons — WCAG 1.4.11 AA | 3:1 | Fail |
| Normal text — WCAG 1.4.6 AAA | 7:1 | Fail |
| Large text — WCAG 1.4.6 AAA | 4.5:1 | Fail |
Nearest passing colours
AA (4.5:1)
AAA (7:1)
How it looks with colour blindness
Simulated with the Machado et al. (2009) model at full severity.
- Aa
Protanopia (no red cones)
2.72:1
- Aa
Deuteranopia (no green cones)
2.69:1
- Aa
Tritanopia (no blue cones)
2.70:1
- Aa
Achromatopsia (no colour)
2.73:1
Try a different pair
Colours
Hex, rgb() or hsl(). Alpha is composited.
Preview
Large heading text
Normal body text at 14 px. The quick brown fox jumps over the lazy dog.
Colour-blindness preview
Simulated with Machado et al. (2009), full severity.
- AaProtanopia (no red cones)2.72:1
- AaDeuteranopia (no green cones)2.69:1
- AaTritanopia (no blue cones)2.70:1
- AaAchromatopsia (no colour)2.73:1
Contrast ratio
2.71:1
| Check | Criterion | Needs | Result |
|---|---|---|---|
| Normal text | 1.4.3 AA | 4.5:1 | Fail |
| Large text | 1.4.3 AA | 3:1 | Fail |
| UI components & graphics | 1.4.11 AA | 3:1 | Fail |
| Normal text | 1.4.6 AAA | 7:1 | Fail |
| Large text | 1.4.6 AAA | 4.5:1 | Fail |
Nearest passing colours
Same hue, lightness adjusted in OKLCH.
AA — 4.5:1
Change text
#73747d · 4.52:1
Change background
#c6c6c6 · 4.52:1
AAA — 7:1
Change text
#94959f · 7.05:1
Change background
#f4f4f4 · 7.02:1
Large text means at least 24 CSS px, or 18.66 CSS px bold. Ratios are truncated, never rounded, so 4.49:1 is shown as failing 4.5:1.
Questions about this pair
- Is #52525b on #000000 accessible?
- No. At 2.71:1 it fails every WCAG 2.2 text contrast threshold, including the 3:1 minimum for large text and UI components.
- What is the contrast ratio of #52525b and #000000?
- 2.71:1, calculated with the WCAG 2.2 relative luminance formula. The ratio is truncated, not rounded, so it never shows a failing pair as passing.
- What colour passes AA on #000000?
- #73747d is the closest colour to #52525b — same hue, adjusted lightness — that reaches 4.5:1 on #000000.
Related colour pairs
- Aa 1.04:1#fafafa on #ffffff · Fails
- Aa 1.04:1#ffffff on #fafafa · Fails
- Aa 20.11:1#fafafa on #000000 · AAA
- Aa 20.11:1#000000 on #fafafa · AAA
- Aa 1.09:1#f4f4f5 on #ffffff · Fails
- Aa 1.09:1#ffffff on #f4f4f5 · Fails
- Aa 19.10:1#f4f4f5 on #000000 · AAA
- Aa 19.10:1#000000 on #f4f4f5 · AAA
- Aa 1.26:1#e4e4e7 on #ffffff · Fails
- Aa 1.26:1#ffffff on #e4e4e7 · Fails
- Aa 16.55:1#e4e4e7 on #000000 · AAA
- Aa 16.55:1#000000 on #e4e4e7 · AAA