Darkgray on White — Contrast Check
Darkgray text on a white background — measured contrast ratio 2.35:1, fails AA.
At a glance
- Foreground hex
- #A9A9A9
- Background hex
- #FFFFFF
- Contrast ratio
- 2.35:1
- WCAG AA (normal text)
- Fail
- WCAG AAA (normal text)
- Fail
Designers reach for darkgray text on white constantly — for headings, links, calls to action, and brand accents. Whether the combination is *accessible* depends on the WCAG contrast ratio, which for this exact pair is 2.35:1. It fails WCAG AA — avoid for any text content. Counter-intuitively, CSS darkgray (#A9A9A9) is *lighter* than gray — and fails AA.
Frequently asked questions
Can I use darkgray text on a white background?
Why does the named color matter?
darkgray is always #A9A9A9 and white is always #FFFFFF. Browsers render them identically, so the contrast ratio is identical too. Always check the hex underneath when you’re testing — gray is not the same as darkgray, which is actually lighter than gray.What does this fail or pass mean for color blindness?
How do I improve the ratio if it fails?
Related Tools
Color Palette
Extract colors from images or generate harmonious palettes.
Color Gradient Test
Test your monitor for color banding and 8-bit vs 10-bit depth with smooth gradients across grayscale, red, green, blue, and hue channels.
CSS Gradient
Visual CSS background generator & code.
Logo Maker
Design logos with a drag-and-drop canvas editor. Add text, icons, and shapes — export PNG, SVG, or ZIP.
CSS Cheatsheet
Quick reference for CSS selectors, Flexbox, Grid, typography, animations, and modern CSS. Search and copy instantly.