Dark gray #A9A9A9
Dark gray is one of the named colours in CSS, written darkgray or darkgrey. Black text reaches 8.94:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | darkgray or darkgrey |
|---|---|
| HEX | #A9A9A9 |
| RGB | rgb(169 169 169) |
| HSL | hsl(0 0% 66%) |
| OKLCH | oklch(73.5% 0.000 0) |
| White text | 2.35:1 · body text AA Fail |
| Black text | 8.94:1 · body text AA Pass |
Colours that go with Dark gray
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Mineral Gray (#A2B0AD), nearly identical. These are the colours Wada paired it with, ranked by their contrast with Dark gray itself.
| Colour | HEX | Contrast with Dark gray | Body text AA |
|---|---|---|---|
| Pompeian Red | #AB2439 | 2.94:1 | Fail |
| Ivory Buff | #EBD3A2 | 1.61:1 | Fail |
Palettes with Mineral Gray
Shades and tints of Dark gray
Nine lightness steps in OKLCH that keep the hue of Dark gray. Chroma is reduced only where sRGB cannot show it.
- 100#F5F5F5
- 200#E4E4E4
- 300#CECECE
- 400#B1B1B1
- 500#929292
- 600#717171
- 700#555555
- 800#3A3A3A
- 900#222222
:root {
--darkgray-100: #F5F5F5;
--darkgray-200: #E4E4E4;
--darkgray-300: #CECECE;
--darkgray-400: #B1B1B1;
--darkgray-500: #929292;
--darkgray-600: #717171;
--darkgray-700: #555555;
--darkgray-800: #3A3A3A;
--darkgray-900: #222222;
}
Text that keeps Dark gray on screen
Text #222222 on #A9A9A9 reaches 6.77:1, which passes WCAG AA for body text. Check it on a dashboard