About Silver
Silver (silver) is a light, muted gray with the hex code #c0c0c0, or rgb(192, 192, 192). In HSL it sits at a hue of 0°, 0% saturation and 75% lightness. It is one of the 148 named colors every browser understands, so you can write color: silver; instead of the hex value.
Using Silver for text and backgrounds
| Pairing | Contrast ratio | WCAG |
|---|---|---|
| Silver text on white | 1.82 : 1 | fails |
| Silver text on black | 11.54 : 1 | AAA |
On a silver background, use black text (11.54 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.
CSS
.element {
color: silver; /* or #c0c0c0 */
background-color: #c0c0c0;
border: 1px solid rgb(192 192 192 / 50%);
}
Similar named colors
Light Gray (#d3d3d3), Thistle (#d8bfd8), Light Steel Blue (#b0c4de), Dark Gray (#a9a9a9), Gainsboro (#dcdcdc), Light Blue (#add8e6).