Dark Gray Color Code (#a9a9a9)

Dark Gray is #a9a9a9 in hex and rgb(169, 169, 169) — a light gray. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Dark Gray
#a9a9a9
CSS namedarkgray (also darkgrey)
Hex#a9a9a9
RGBrgb(169, 169, 169)
HSLhsl(0 0% 66%)
HWBhwb(0 66% 34%)
CMYK0%, 0%, 0%, 34%

Tints and shades

About Dark Gray

Dark Gray (darkgray) is a light, muted gray with the hex code #a9a9a9, or rgb(169, 169, 169). In HSL it sits at a hue of 0°, 0% saturation and 66% lightness. CSS also accepts the spelling darkgrey for exactly the same color. It is one of the 148 named colors every browser understands, so you can write color: darkgray; instead of the hex value.

Using Dark Gray for text and backgrounds

PairingContrast ratioWCAG
Dark Gray text on white2.35 : 1fails
Dark Gray text on black8.94 : 1AAA

On a dark gray background, use black text (8.94 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: darkgray;               /* or #a9a9a9 */
  background-color: #a9a9a9;
  border: 1px solid rgb(169 169 169 / 50%);
}

Similar named colors

Silver (#c0c0c0), Dark Sea Green (#8fbc8f), Rosy Brown (#bc8f8f), Tan (#d2b48c), Light Steel Blue (#b0c4de), Light Slate Gray (#778899).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for dark gray?
#a9a9a9 — that is rgb(169, 169, 169) and hsl(0, 0%, 66%). In CSS you can also just write darkgray.
Is dark gray text readable on white?
Its contrast ratio on white is 2.35 : 1, which fails WCAG — use it for decoration or on a dark background instead.
What colors go well with dark gray?
Dark Gray is a neutral, so it pairs with almost any color; use it for backgrounds, borders and text around a stronger accent.