Silver
Silver is a light gray with no tint at all. Hex code #C0C0C0.
Silver color codes
- CSS name
silver - HEX
#C0C0C0 - RGB
rgb(192, 192, 192) - HSL
hsl(0, 0%, 75%) - OKLCH
oklch(80.8% 0 0)
HSB and CMYK values
- HSB / HSV
hsb(0, 0%, 75%) - CMYK
C0 M0 Y0 K25
White text
1.81:1 · fails WCAG
Black text
11.54:1 · passes WCAG AAA
Shades of silver
A darker shade of silver is #9C9C9C (300), and a lighter one is #F2F2F2 (50).
Colors that go with silver
Tones
Silver has no complementary color: grays, black and white have no hue to turn around the color wheel.
Click a color to copy its hex code.
Colors similar to silver
- Light gray#D3D3D3
Lighter
- Dark gray#A9A9A9
Darker
- Gainsboro#DCDCDC
Lighter
- Linen#FAF0E6
Lighter, a faint orange tint
- Lavender blush#FFF0F5
Lighter, a faint pink tint
- White smoke#F5F5F5
Lighter
Each compared with silver.
About this color
Silver in CSS and design
Silver is one of the 16 basic color keywords, which come from the VGA palette by way of HTML. These four lines all give the same silver:
color: silver;
color: #C0C0C0;
color: rgb(192, 192, 192);
color: hsl(0, 0%, 75%);What to know about silver
Silver is #C0C0C0, each channel at 192, three quarters of full strength. In lightness it sits between dark gray (#A9A9A9) and light gray (#D3D3D3). On white it reaches just 1.81:1, so it suits decorative lines and backgrounds rather than text.
Silver and the other grays
Silver sits between dark gray (#A9A9A9) and light gray (#D3D3D3) in lightness. As text on silver, black and dark slate gray reach the 4.5:1 contrast that WCAG AA asks for.
| Gray | Hex | Lightness | Contrast with silver |
|---|---|---|---|
| Black | #000000 | 0% | 11.54:1 |
| Dark slate gray | #2F4F4F | 40% | 4.90:1 |
| Dim gray | #696969 | 52% | 3.01:1 |
| Slate gray | #708090 | 59% | 2.22:1 |
| Gray | #808080 | 60% | 2.17:1 |
| Light slate gray | #778899 | 62% | 2.00:1 |
| Dark gray | #A9A9A9 | 73% | 1.29:1 |
| Silver | #C0C0C0 | 81% | – |
| Light gray | #D3D3D3 | 87% | 1.21:1 |
| Gainsboro | #DCDCDC | 89% | 1.32:1 |
| White smoke | #F5F5F5 | 97% | 1.66:1 |
| White | #FFFFFF | 100% | 1.81:1 |
Lightness is OKLCH lightness, which follows how light a color looks.
Frequently asked questions
What is the hex code for silver?
#C0C0C0. In CSS you can also use the keyword silver, which works in every browser.
What is silver in RGB and HSL?
In RGB it is rgb(192, 192, 192) and in HSL hsl(0, 0%, 75%). In CMYK it is about C0 M0 Y0 K25, though printed colors vary with paper and ink.
Should I use black or white text on silver?
Black text works better: it has a contrast ratio of 11.54:1 and passes WCAG AAA. White text reaches 1.81:1.
What is the complementary color of silver?
Silver has no complementary color. A complement is found by turning a color's hue halfway around the color wheel, and grays, black and white have no hue to turn.
Which colors go with silver?
As a neutral, silver goes with almost any color. Its own tones, from #4D4D4D to #DEDEDE, make a calm palette, and a single vivid accent stands out against it.