darkgray — #A9A9A9
#A9A9A9
rgb(169, 169, 169) · hsl(0, 0%, 66%) · CSS keyword darkgray
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| darkgray on white | 2.35:1 | — | — |
| darkgray on black | 8.94:1 | AA | AA |
As a background, darkgray takes black text: 8.94:1 against 2.35:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: darkgray;
color: #a9a9a9;
color: rgb(169 169 169);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
darkgrey is the same colour: CSS accepts both spellings and they are byte for byte identical, so color: darkgray and color: darkgrey render the same.
Colours close to darkgray
- darkseagreen — #8FBC8F
- silver — #C0C0C0
- rosybrown — #BC8F8F
- darkkhaki — #BDB76B
- tan — #D2B48C
- lightsteelblue — #B0C4DE
Frequently asked questions
What is the hex code for darkgray?
The hex code for darkgray is #A9A9A9 — RGB 169, 169, 169.
Can I use darkgray for text?
Not on a white background. darkgray reaches only 2.35:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.
Should text on darkgray be black or white?
Black — 8.94:1 against 2.35:1 the other way.
Other named colours
- darkgreen — #006400
- darkkhaki — #BDB76B
- darkmagenta — #8B008B
- darkolivegreen — #556B2F
- darkorange — #FF8C00
- darkorchid — #9932CC
- darkred — #8B0000
- darksalmon — #E9967A
- darkseagreen — #8FBC8F
- darkslateblue — #483D8B
- darkslategray — #2F4F4F
- darkturquoise — #00CED1
#A9A9A9 in full — tints, shades and harmonies · All named colours · Colour reference