About silver
CSS silver (#C0C0C0) is a light gray, one of the 16 HTML 4 color names. Like gold, a flat color cannot shine like metal, so a metallic look needs a gradient.
Nearby grays include lightgray (#D3D3D3), darkgray (#A9A9A9) and gainsboro (#DCDCDC).
Shades and tints of silver
Silver lands on the 300 step. The steps follow a lightness curve modeled on Tailwind CSS's default palette; build your own in the Tailwind color generator. For silver mixed with white, black or gray in even steps, use the tint and shade generator.
Colors that go with silver
Silver is a neutral color, so hue-based harmonies do not apply: it goes with any hue. Pair it with one accent color, or build a palette in the palette generator.
Text on silver
| Text | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White | 1.82:1 | Fail | Fail | Fail |
| Black | 11.54:1 | Pass | Pass | Pass |
The ratio is the same either way round, so silver text on a white background is also 1.82:1. Check other pairs in the color contrast checker.
Similar named colors
The CSS named colors closest to silver, by deltaE OK distance.
See all 148 on the color names page.
Closest Tailwind CSS colors
mauve-300 v4: mauve-300, #D7D0D7, deltaE OK 0.058
stone-300 v3: stone-300, #D6D3D1, deltaE OK 0.061
No default Tailwind color is a close match: the nearest are mauve-300 in v4 and stone-300 in v3. Use an arbitrary value instead: bg-[#c0c0c0]. A deltaE OK of around 0.02 is roughly the smallest difference most people notice side by side. Browse every shade on the Tailwind CSS colors page.
Silver with color vision deficiency
Silver has almost no hue, so it looks the same with any type of color vision deficiency. What matters is its lightness contrast with the colors next to it.
Test a whole palette or image in the color blindness simulator.
Using silver in code
.example {
color: silver; /* named color */
background-color: #c0c0c0; /* hex */
border-color: rgb(192, 192, 192);
}
