Basic HTML and CSS color
Silver #C0C0C0
Silver (CSS keyword silver) has the hex code #C0C0C0 and the RGB value rgb(192, 192, 192): a very light neutral gray.
Silver (#c0c0c0) is one of the 16 original HTML colors and the light gray of the classic Windows 95 interface. It has no metallic quality on screen.
Color codes for Silver
| CSS keyword | silver |
|---|---|
| HEX | #C0C0C0 |
| RGB | rgb(192, 192, 192) |
| HSL | hsl(0, 0%, 75%) |
| HWB | hwb(0 75% 25%) |
| OKLCH | oklch(80.8% 0 0) |
| CMYK (naive, no ICC profile) | cmyk(0%, 0%, 0%, 25%) |
| Decimal | 12,632,256 |
| Hue family | Grays and black |
Contrast and accessibility
On silver, black text has a contrast ratio of 11.54:1 and passes AAA at any text size; white text reaches 1.81:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on silver | 11.54:1 | Pass | Pass | Pass | Pass | 69.9 |
| White text on silver | 1.81:1 | Fail | Fail | Fail | Fail | −38.1 |
| Silver text on white | 1.81:1 | Fail | Fail | Fail | Fail | 34.0 |
| Silver text on black | 11.54:1 | Pass | Pass | Pass | Pass | −68.6 |
Tints and shades
Each step mixes silver with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, silver, white 25%) in CSS.
Tints (mixed with white)
- 5%
#c3c3c3 - 15%
#c9c9c9 - 25%
#d0d0d0 - 35%
#d6d6d6 - 45%
#dcdcdc - 55%
#e3e3e3 - 65%
#e9e9e9 - 75%
#efefef - 85%
#f6f6f6 - 95%
#fcfcfc
Shades (mixed with black)
- 5%
#b6b6b6 - 15%
#a3a3a3 - 25%
#909090 - 35%
#7d7d7d - 45%
#6a6a6a - 55%
#565656 - 65%
#434343 - 75%
#303030 - 85%
#1d1d1d - 95%
#0a0a0a
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, silver's complementary color is #C0C0C0 (close to silver), its analogous colors are #C0C0C0 and #C0C0C0, and its triadic partners are #C0C0C0 and #C0C0C0. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #c0c0c0 |
| Analogous | −30°, +30° | #c0c0c0#c0c0c0 |
| Triadic | +120°, +240° | #c0c0c0#c0c0c0 |
| Split-complementary | +150°, +210° | #c0c0c0#c0c0c0 |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Silver is close to neutral: its OKLCH chroma is only 0.000, so its temperature comes from context. It has no perceptible hue.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
.element {
color: silver;
background-color: #c0c0c0;
border-color: rgb(192 192 192);
outline-color: oklch(80.8% 0 0);
}<div class="bg-[#c0c0c0] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-silver: #c0c0c0;
}
/* then use bg-silver, text-silver, border-silver */import SwiftUI
extension Color {
static let silver = Color(red: 0.753, green: 0.753, blue: 0.753)
}import androidx.compose.ui.graphics.Color
val Silver = Color(0xFFC0C0C0)import 'package:flutter/material.dart';
const silver = Color(0xFFC0C0C0);<!-- res/values/colors.xml -->
<color name="silver">#C0C0C0</color>Frequently asked questions
- What is the hex code for silver?
- The hex code for silver is #C0C0C0. The same color is rgb(192, 192, 192), hsl(0, 0%, 75%) and oklch(80.8% 0 0), and in CSS you can also write the keyword silver directly.
- Is silver a warm or cool color?
- Silver is close to neutral: its OKLCH chroma is only 0.000, so its temperature comes from context. It has no perceptible hue.
- What colors go with silver?
- Rotating the hue in OKLCH while keeping lightness and chroma, silver's complementary color is #C0C0C0 (close to silver), its analogous colors are #C0C0C0 and #C0C0C0, and its triadic partners are #C0C0C0 and #C0C0C0. For text on top, black gives the higher contrast.
- Can you use white text on silver?
- White text on silver has a contrast ratio of 1.81:1, which fails AA even for large text under WCAG 2.2. Black text reaches 11.54:1 and passes both AA and AAA. In APCA terms that is Lc −38.1 for white and Lc 69.9 for black.
- What is the RGB value of silver?
- Silver is rgb(192, 192, 192): red 192, green 192 and blue 192 on the 0 to 255 scale, or 75.3%, 75.3% and 75.3%. As a decimal integer it is 12632256.
Last reviewed by Arielton Oberek.