Description
Gainsboro has a hue of 0°, saturation 0% and lightness 86%, which places it in the gray family. Its strongest channel is red (220).
Using gainsboro in CSS
.title { color: gainsboro; }
.box { background: gainsboro; border-color: #dcdcdc; }
.soft { background: rgb(220 220 220 / 20%); } /* gainsboro 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 |
|---|---|---|---|
| lightgray | #d3d3d3 | 211, 211, 211 | 2.1 |
| whitesmoke | #f5f5f5 | 245, 245, 245 | 5.4 |
| silver | #c0c0c0 | 192, 192, 192 | 6.8 |
| snow | #fffafa | 255, 250, 250 | 7 |
| ghostwhite | #f8f8ff | 248, 248, 255 | 7 |
| aliceblue | #f0f8ff | 240, 248, 255 | 7.2 |
| linen | #faf0e6 | 250, 240, 230 | 7.4 |
| white | #ffffff | 255, 255, 255 | 7.4 |
Δ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: 1.37:1; with black text: 15.31:1. Black body text on gainsboro meets WCAG AA; white text does not.