Skip to content

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

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

Color codes for Silver
CSS keywordsilver
HEX#C0C0C0
RGBrgb(192, 192, 192)
HSLhsl(0, 0%, 75%)
HWBhwb(0 75% 25%)
OKLCHoklch(80.8% 0 0)
CMYK (naive, no ICC profile)cmyk(0%, 0%, 0%, 25%)
Decimal12,632,256
Hue familyGrays 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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on silver11.54:1PassPassPassPass69.9
White text on silver1.81:1FailFailFailFail−38.1
Silver text on white1.81:1FailFailFailFail34.0
Silver text on black11.54:1PassPassPassPass−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)

  1. 5%
    #c3c3c3
  2. 15%
    #c9c9c9
  3. 25%
    #d0d0d0
  4. 35%
    #d6d6d6
  5. 45%
    #dcdcdc
  6. 55%
    #e3e3e3
  7. 65%
    #e9e9e9
  8. 75%
    #efefef
  9. 85%
    #f6f6f6
  10. 95%
    #fcfcfc

Shades (mixed with black)

  1. 5%
    #b6b6b6
  2. 15%
    #a3a3a3
  3. 25%
    #909090
  4. 35%
    #7d7d7d
  5. 45%
    #6a6a6a
  6. 55%
    #565656
  7. 65%
    #434343
  8. 75%
    #303030
  9. 85%
    #1d1d1d
  10. 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.

Color harmonies
HarmonyRotationColor
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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
lightsteelblue#b0c4de4.3
thistle#d8bfd85.1
lightgray#d3d3d35.9

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
mauve-300#d7d0d75.8
taupe-300#d8d2d06.1
stone-300#d6d3d16.1

Code snippets

CSS
.element {
  color: silver;
  background-color: #c0c0c0;
  border-color: rgb(192 192 192);
  outline-color: oklch(80.8% 0 0);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let silver = Color(red: 0.753, green: 0.753, blue: 0.753)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Silver = Color(0xFFC0C0C0)
Flutter
import 'package:flutter/material.dart';

const silver = Color(0xFFC0C0C0);
Android XML
<!-- 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.