Silver
Popular
Color Codes
HEX
#C0C0C0
RGB
rgb(192, 192, 192)
HSL
hsl(0, 0%, 75%)
Usage Examples
CSS (HEX)
.element {
background-color: #C0C0C0;
color: #C0C0C0;
border: 1px solid #C0C0C0;
}CSS (RGB)
.element {
background-color: rgb(192, 192, 192);
color: rgb(192, 192, 192);
}CSS (HSL)
.element {
background-color: hsl(0, 0%, 75%);
color: hsl(0, 0%, 75%);
}HTML Inline Style
<div style="background-color: #C0C0C0; color: white;"> Content </div>
JavaScript
element.style.backgroundColor = "#C0C0C0"; element.style.color = "#C0C0C0";
React/JSX
<div style={{ backgroundColor: "#C0C0C0", color: "white" }}>
Content
</div>About Color Formats
HEX: Hexadecimal color codes are the most common format in web development. Format: #RRGGBB where RR, GG, BB are hex values (00-FF) for red, green, and blue.
RGB: Red, Green, Blue values from 0-255. Supports alpha channel with rgba() for transparency.
HSL: Hue (0-360°), Saturation (0-100%), Lightness (0-100%). More intuitive for color adjustments and supports alpha with hsla().
RGB: Red, Green, Blue values from 0-255. Supports alpha channel with rgba() for transparency.
HSL: Hue (0-360°), Saturation (0-100%), Lightness (0-100%). More intuitive for color adjustments and supports alpha with hsla().