Description
Grey has a hue of 0°, saturation 0% and lightness 50%, which places it in the gray family. Its strongest channel is red (128). It is identical to gray; both keywords produce #808080.
Using grey in CSS
.title { color: grey; }
.box { background: grey; border-color: #808080; }
.soft { background: rgb(128 128 128 / 20%); } /* grey 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 |
|---|---|---|---|
| slategray | #708090 | 112, 128, 144 | 8.9 |
| dimgray | #696969 | 105, 105, 105 | 9.1 |
| lightslategray | #778899 | 119, 136, 153 | 9.5 |
| darkgray | #a9a9a9 | 169, 169, 169 | 13.5 |
| rosybrown | #bc8f8f | 188, 143, 143 | 18.7 |
| steelblue | #4682b4 | 70, 130, 180 | 18.9 |
| cadetblue | #5f9ea0 | 95, 158, 160 | 19.2 |
| silver | #c0c0c0 | 192, 192, 192 | 19.7 |
Δ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: 3.95:1; with black text: 5.32:1. Black body text on grey meets WCAG AA; white text does not.