Silver hex code

The hex code for silver is #C0C0C0, or rgb(192, 192, 192). CSS also accepts the keyword silver.

#C0C0C0
HEX#C0C0C0
RGBrgb(192, 192, 192)
HSLhsl(0, 0%, 75%)
HSV / HSBhsv(0, 0%, 75%)
OKLCHoklch(80.78% 0 0)
CMYKcmyk(0%, 0%, 0%, 25%)
HEX, 50% opacity#C0C0C080
RGB, 50% opacityrgb(192 192 192 / 50%)
CSS namesilver
Defined inHTML 4.01 (one of the original 16 color names)

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.

50#F7F7F7100#EFEFEF200#DEDEDE300#C0C0C0400#ACACAC500#9A9A9A600#7E7E7E700#676767800#555555900#464646950#292929

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

White text on silver: 1.82:1
Black text on silver: 11.54:1
TextRatioAA normalAA largeAAA normal
White1.82:1FailFailFail
Black11.54:1PassPassPass

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.

lightsteelblue #B0C4DEthistle #D8BFD8lightgray #D3D3D3tan #D2B48Clightblue #ADD8E6darkgray #A9A9A9

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);
}

Frequently asked questions

What is the hex code for silver?
#C0C0C0. CSS also accepts the keyword silver, which means the same color.
What is silver in RGB?
rgb(192, 192, 192). In HSL it is hsl(0, 0%, 75%), and in OKLCH oklch(80.78% 0 0).
What text color goes on silver?
Black text has the higher contrast on #C0C0C0: 11.54:1, which meets AAA for all text. White text reaches 1.82:1.
What is the closest Tailwind color to silver?
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].
How do I make silver transparent?
Add an alpha value. Half-transparent silver is #C0C0C080 as 8-digit HEX (80 is 128 out of 255) or rgb(192 192 192 / 50%).