Free Accessible CSS Gradient Generator

← All Colors
#C0C0C0 Silver

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.

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.

Contrast of Silver with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 1.82:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 11.54:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Silver1.82:1
Aa Black text on Silver11.54:1

Silver and color blindness

These are approximate previews of how Silver can look with the main types of color vision deficiency.

Protanopia #C0C0C0

Silver looks almost the same.

Deuteranopia #C0C0C0

Silver looks almost the same.

Tritanopia #C0C0C0

Silver looks almost the same.

Achromatopsia #C0C0C0

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.

More gray & black colors →

Use Silver in code

CSS
.element {
  color: #c0c0c0;
  background-color: #c0c0c0;
  border-color: silver;   /* silver is a valid CSS color name */
}
CSS variable
:root {
  --color-silver: #c0c0c0;
}
Tailwind
<!-- 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).

More color tools