Toolman

darkgray — #A9A9A9

#A9A9A9

rgb(169, 169, 169) · hsl(0, 0%, 66%) · CSS keyword darkgray

Can you put text on it?

ContrastBody textLarge text
darkgray on white2.35:1
darkgray on black8.94:1AAAA

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

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

#A9A9A9 in full — tints, shades and harmonies · All named colours · Colour reference