Gray color — #808080
Gray is a CSS named color with the HEX code #808080, RGB value rgb(128, 128, 128) and HSL value hsl(0, 0%, 50%).
GrayAlso known as: grey
Gray
#808080
Color codes
- HEX
- #808080
- RGB
- rgb(128, 128, 128)
- HSL
- hsl(0, 0%, 50%)
- HSV
- hsv(0, 0%, 50%)
- CMYK
- cmyk(0%, 0%, 0%, 50%)
- OKLCH
- oklch(59.99% 0 0)
CSS usage
In CSS you can use the keyword or any equivalent value:
.element {
color: gray;
background-color: #808080;
border-color: rgb(128, 128, 128);
outline-color: hsl(0, 0%, 50%);
}Shades
Tints
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Contrast ratio
Contrast ratio against white and black text, per WCAG 2.2.
Gray — On white3.94:1 · AA Large
Gray — On black5.31:1 · AA