Dark Gray Hex Code #A9A9A9
Dark Gray is a light gray with the hex code #A9A9A9. In RGB it is 169, 169, 169, and in HSL it is 0°, 0%, 66%. It is one of the 148 named colors in CSS, so you can write “darkgray” instead of the hex code. It is also written as “darkgrey”.
- HEX
- #A9A9A9
- RGB
- rgb(169, 169, 169)
- HSL
- hsl(0, 0%, 66%)
- HSV
- hsv(0°, 0%, 66%)
- CMYK
- cmyk(0%, 0%, 0%, 34%)
- CSS name
- darkgray
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Dark Gray
On a white background Dark Gray has a contrast ratio of 2.35:1 (Fail), and on black 8.94:1 (AAA). Black text is the better choice on top of it.
It has almost no hue of its own, so it pairs comfortably with almost any accent color.
Grays do much of the quiet work in interface design: text, borders, backgrounds and disabled states. Because they carry no strong hue, they pair with almost any accent color.
Shades and tints of Dark Gray
Tints mix Dark Gray with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Pairing Dark Gray with an accent color
Dark Gray has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with Dark Gray.
- Crimson #DC143C 2.12:1 against Dark Gray (WCAG Fail)
- Dark Orange #FF8C00 1.01:1 against Dark Gray (WCAG Fail)
- Gold #FFD700 1.68:1 against Dark Gray (WCAG Fail)
- Sea Green #2E8B57 1.81:1 against Dark Gray (WCAG Fail)
- Royal Blue #4169E1 2.06:1 against Dark Gray (WCAG Fail)
- Dark Orchid #9932CC 2.43:1 against Dark Gray (WCAG Fail)
Dark Gray contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Dark Gray scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 2.35:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 8.94:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Dark Gray and color blindness
These are approximate previews of how Dark Gray can look with the main types of color vision deficiency.
Dark Gray looks almost the same.
Dark Gray looks almost the same.
Dark Gray looks almost the same.
Dark Gray looks almost the same.
Gradients with Dark Gray
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Dark Gray to a lighter tint
background: linear-gradient(135deg, #a9a9a9 0%, #dddddd 100%); Dark Gray to a darker shade
background: linear-gradient(135deg, #a9a9a9 0%, #444444 100%); Dark Gray to Dark Orchid
background: linear-gradient(135deg, #a9a9a9 0%, #9932cc 100%); Colors similar to Dark Gray
How each close match differs from Dark Gray.
Use Dark Gray in code
.element {
color: #a9a9a9;
background-color: #a9a9a9;
border-color: darkgray; /* darkgray is a valid CSS color name */
} :root {
--color-dark-gray: #a9a9a9;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#a9a9a9] text-[#a9a9a9] border-[#a9a9a9]"></div>
/* Tailwind v4 theme color */
@theme {
--color-dark-gray: #a9a9a9;
} Dark Gray questions
What is the hex code for Dark Gray?
The hex code for Dark Gray is #A9A9A9. In RGB that is rgb(169, 169, 169), and in HSL it is hsl(0, 0%, 66%).
Which colors go well with Dark Gray?
Dark Gray is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Dark Orchid (2.43:1), Crimson (2.12:1), Royal Blue (2.06:1).
Should I use white or black text on Dark Gray?
Black text. It has a contrast ratio of 8.94:1 against Dark Gray, which is WCAG AAA. The other option scores 2.35:1.
Is Dark Gray accessible as a text color on white?
No. Dark Gray on white scores 2.35:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Dark Gray?
Mixing Dark Gray with black gives #878787, #656565, #444444, #222222 (20% to 80% black). Mixing it with white gives #BABABA, #CBCBCB, #DDDDDD, #EEEEEE (20% to 80% white).