Silver Hex Code #C0C0C0
Silver is a light gray with the hex code #C0C0C0. In RGB it is 192, 192, 192, and in HSL it is 0°, 0%, 75%. It is one of the 148 named colors in CSS, so you can write “silver” instead of the hex code.
- HEX
- #C0C0C0
- RGB
- rgb(192, 192, 192)
- HSL
- hsl(0, 0%, 75%)
- HSV
- hsv(0°, 0%, 75%)
- CMYK
- cmyk(0%, 0%, 0%, 25%)
- CSS name
- silver
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Silver
On a white background Silver has a contrast ratio of 1.82:1 (Fail), and on black 11.54:1 (AAA). Black text is the better choice on top of it.
It has almost no hue of its own, so it pairs comfortably with almost any accent color.
Grays do much of the quiet work in interface design: text, borders, backgrounds and disabled states. Because they carry no strong hue, they pair with almost any accent color.
Good to know: Silver (#c0c0c0) uses 192 of 255 in every channel, about 75%. It is lighter than gray (#808080) and darker than gainsboro (#dcdcdc). A flat color cannot reproduce metallic shine, so designers use gradients to suggest it.
Shades and tints of Silver
Tints mix Silver with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Pairing Silver with an accent color
Silver has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with Silver.
- Crimson #DC143C 2.74:1 against Silver (WCAG Fail)
- Dark Orange #FF8C00 1.28:1 against Silver (WCAG Fail)
- Gold #FFD700 1.30:1 against Silver (WCAG Fail)
- Sea Green #2E8B57 2.33:1 against Silver (WCAG Fail)
- Royal Blue #4169E1 2.66:1 against Silver (WCAG Fail)
- Dark Orchid #9932CC 3.13:1 against Silver (WCAG AA Large)
Silver contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Silver scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.82:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 11.54:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Silver and color blindness
These are approximate previews of how Silver can look with the main types of color vision deficiency.
Silver looks almost the same.
Silver looks almost the same.
Silver looks almost the same.
Silver looks almost the same.
Gradients with Silver
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Silver to a lighter tint
background: linear-gradient(135deg, #c0c0c0 0%, #e6e6e6 100%); Silver to a darker shade
background: linear-gradient(135deg, #c0c0c0 0%, #4d4d4d 100%); Silver to Dark Orchid
background: linear-gradient(135deg, #c0c0c0 0%, #9932cc 100%); Colors similar to Silver
How each close match differs from Silver.
Use Silver in code
.element {
color: #c0c0c0;
background-color: #c0c0c0;
border-color: silver; /* silver is a valid CSS color name */
} :root {
--color-silver: #c0c0c0;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#c0c0c0] text-[#c0c0c0] border-[#c0c0c0]"></div>
/* Tailwind v4 theme color */
@theme {
--color-silver: #c0c0c0;
} Silver questions
What is the hex code for Silver?
The hex code for Silver is #C0C0C0. In RGB that is rgb(192, 192, 192), and in HSL it is hsl(0, 0%, 75%).
Which colors go well with Silver?
Silver is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Dark Orchid (3.13:1), Crimson (2.74:1), Royal Blue (2.66:1).
Should I use white or black text on Silver?
Black text. It has a contrast ratio of 11.54:1 against Silver, which is WCAG AAA. The other option scores 1.82:1.
Is Silver accessible as a text color on white?
No. Silver on white scores 1.82:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Silver?
Mixing Silver with black gives #9A9A9A, #737373, #4D4D4D, #262626 (20% to 80% black). Mixing it with white gives #CDCDCD, #D9D9D9, #E6E6E6, #F2F2F2 (20% to 80% white).