Skip to content
Color Codes

CSS named color

DarkGray Color Code

DarkGray is a light gray with the hex code #A9A9A9. In RGB it is rgb(169, 169, 169), in HSL hsl(0, 0%, 66%) and in CMYK cmyk(0%, 0%, 0%, 34%).

DarkGray
#A9A9A9

Color values

In CSS you can write it as the keyword darkgray.

White text on DarkGray has a contrast ratio of 2.35:1 and black text 8.94:1, so black text is the more readable choice.

The closest Tailwind CSS color is Neutral 400 (#A3A3A3).

Use DarkGray in CSS

.element {
  color: darkgray;
  background-color: #a9a9a9;
  border-color: rgb(169, 169, 169);
}

Tints and shades of DarkGray

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with DarkGray

Color-wheel harmonies built from #A9A9A9. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on DarkGray

Aa
White text
2.35:1
Fail
Aa
Black text
8.94:1
AAA
Check in the contrast checker

Colors similar to DarkGray

Palettes with similar colors

Questions about DarkGray

What is the hex code for DarkGray?

The hex code for DarkGray is #A9A9A9. Its RGB value is rgb(169, 169, 169) and its HSL value is hsl(0, 0%, 66%).

What colors go with DarkGray?

The complementary color of DarkGray is #A8A8A8. For a softer scheme try the analogous colors #A8A8A8 and #A8A8A8; for a balanced three-color scheme use the triadic colors #A8A8A8 and #A8A8A8.

Is DarkGray readable as a text color?

On a white background DarkGray has a contrast ratio of 2.35:1, which does not pass WCAG AA for normal text (4.5:1). On black it reaches 8.94:1.

More gray colors