Silver
Silver is a light gray with no tint at all. Hex code #C0C0C0.
Color codes
- CSS name
silver - HEX
#C0C0C0 - RGB
rgb(192 192 192) - HSL
hsl(0 0% 75%) - HSB / HSV
hsb(0, 0%, 75%) - OKLCH
oklch(80.8% 0 0) - CMYK
cmyk(0%, 0%, 0%, 25%)
White text
1.81:1 · fails WCAG
Black text
11.54:1 · passes WCAG AAA
Shades
Tones
About this color
Silver in CSS and design
Silver is a light gray with no tint at all. Silver is one of the 16 basic color keywords, which go back to HTML 4, long before CSS had 148 named colors.
Use it in CSS by name or by any of its codes; these all give the same color:
color: silver;
color: #C0C0C0;
color: rgb(192 192 192);
color: hsl(0 0% 75%);For text on silver, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
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), in HSL hsl(0 0% 75%). For print, cmyk(0%, 0%, 0%, 25%) is a starting point, but CMYK depends on paper and ink, so check with your printer.
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.
Which colors go with silver?
As a neutral, silver goes with almost any color. It works well as a background, border or text color next to a vivid accent, and with the lighter and darker tones from its shades.