CSS named color

DarkGray #A9A9A9

darkgray rgb(169, 169, 169)

DarkGray is a light gray with the hex code #A9A9A9, which converts to rgb(169, 169, 169). The British spelling darkgrey is an alias and renders exactly the same color. Open #A9A9A9 in the converter to tweak it.

DarkGray color values

HEX#A9A9A9
HEX (shorthand)—
RGBrgb(169, 169, 169)
RGBArgba(169, 169, 169, 1)
8-digit HEX#A9A9A9FF
HSLhsl(0, 0%, 66%)
HSV / HSB0°, 0%, 66%
CMYK0%, 0%, 0%, 34%
RGB 0–10.663, 0.663, 0.663
Decimal11119017
CSS keyworddarkgray

How #A9A9A9 converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: A9 → 169, A9 → 169, A9 → 169. That gives rgb(169, 169, 169). The step-by-step guide explains the math.

Shades of DarkGray

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of DarkGray

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of DarkGray on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

DarkGray has no hue (saturation is 0%), so hue-based harmonies collapse to the same gray. Grays pair with any accent color — pick one from the palette generator.

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White DarkGray 2.35:1Fail
Black DarkGray 8.93:1AAA

Use black text on a darkgray background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use DarkGray in CSS

.element {
  color: darkgray;                         /* keyword */
  background-color: #A9A9A9;            /* hex */
  border-color: rgb(169 169 169 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #A9A9A980 is DarkGray at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for DarkGray?

The CSS named color darkgray is #A9A9A9 in hexadecimal. In CSS you can write color: darkgray; or color: #A9A9A9; — both produce the same pixel.

What is DarkGray in RGB?

DarkGray is rgb(169, 169, 169): red 169, green 169, blue 169 on the 0–255 scale. As normalized 0–1 floats that is (0.663, 0.663, 0.663).

Is white or black text more readable on DarkGray?

Black text is more readable. White on #A9A9A9 has a contrast ratio of 2.35:1 (Fail), black on #A9A9A9 has 8.93:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!