CSS Named Color
Copy-ready color values
HEX
#808080RGB
rgb(128, 128, 128)HSL
hsl(0, 0%, 50%)HSV
hsv(0, 0%, 50%)CMYK approx.
cmyk(0, 0, 0, 50)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #808080 | |
| RGB | rgb(128, 128, 128) | |
| HSL | hsl(0, 0%, 50%) | |
| HSV | hsv(0, 0%, 50%) | |
| CMYK approx. | cmyk(0, 0, 0, 50) | |
| CSS keyword | gray |
Contrast and classification
DarkLightness3.95:1Contrast with white5.32:1Contrast with blackGrayscaleColor family
Shade and tint preview
White 10%#8D8D8D
White 30%#A6A6A6
White 70%#D9D9D9
White 90%#F2F2F2
Black 10%#737373
Black 30%#5A5A5A
Black 70%#262626
Black 90%#0D0D0D
Harmony palettes
Complementary
#7F7F7F#9E9E9EAnalogous
#808080#808080Triadic
#808080#808080Split complementary
#969696#686868Using Gray
Gray 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-gray: #808080;
}
.button-primary {
background: var(--color-gray);
color: #000000;
}
$gray: #808080;
// Tailwind arbitrary value
class="bg-[#808080] text-white"