CSS Named Color
Copy-ready color values
HEX
#DCDCDCRGB
rgb(220, 220, 220)HSL
hsl(0, 0%, 86%)HSV
hsv(0, 0%, 86%)CMYK approx.
cmyk(0, 0, 0, 14)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #DCDCDC | |
| RGB | rgb(220, 220, 220) | |
| HSL | hsl(0, 0%, 86%) | |
| HSV | hsv(0, 0%, 86%) | |
| CMYK approx. | cmyk(0, 0, 0, 14) | |
| CSS keyword | gainsboro |
Contrast and classification
LightLightness1.37:1Contrast with white15.31:1Contrast with blackGrayscaleColor family
Shade and tint preview
White 10%#E0E0E0
White 30%#E7E7E7
White 70%#F5F5F5
White 90%#FCFCFC
Black 10%#C6C6C6
Black 30%#9A9A9A
Black 70%#424242
Black 90%#161616
Harmony palettes
Complementary
#232323#585858Analogous
#DCDCDC#DCDCDCTriadic
#DCDCDC#DCDCDCSplit complementary
#4B4B4B#1D1D1DUsing Gainsboro
Gainsboro works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.
CSS, SCSS, and Tailwind examples
:root {
--color-gainsboro: #dcdcdc;
}
.button-primary {
background: var(--color-gainsboro);
color: #000000;
}
$gainsboro: #dcdcdc;
// Tailwind arbitrary value
class="bg-[#dcdcdc] text-white"