Description
Dimgray has a hue of 0°, saturation 0% and lightness 41%, which places it in the gray family. The "dim" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080). It is identical to dimgrey; both keywords produce #696969.
Using dimgray in CSS
.title { color: dimgray; }
.box { background: dimgray; border-color: #696969; }
.soft { background: rgb(105 105 105 / 20%); } /* dimgray at 20% opacity */Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.
Similar named colors
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| gray | #808080 | 128, 128, 128 | 9.1 |
| slategray | #708090 | 112, 128, 144 | 12.2 |
| lightslategray | #778899 | 119, 136, 153 | 14.7 |
| darkslategray | #2f4f4f | 47, 79, 79 | 17 |
| steelblue | #4682b4 | 70, 130, 180 | 20.5 |
| darkolivegreen | #556b2f | 85, 107, 47 | 21.1 |
| teal | #008080 | 0, 128, 128 | 21.8 |
| darkgray | #a9a9a9 | 169, 169, 169 | 22.9 |
ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.
Pairs well with
Readability
Contrast with white text: 5.49:1; with black text: 3.83:1. White body text on dimgray meets WCAG AA.