grey grey #808080
grey is #808080 in hexadecimal, rgb(128, 128, 128) in decimal and hsl(0, 0, 50) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #808080 |
| RGB | rgb(128, 128, 128) |
| HSL | hsl(0, 0%, 50%) |
Harmonies
Complementary
#609f9fAnalogous
#9f6080#9f8060Triadic
#609f60#60609fSplit complementary
#609f80#60809fTints & shades
Accessibility
| vs #ffffff | 3.95:1 |
| vs #000000 | 5.32:1 |
| Suggested text color | #000000 · 5.32:1 · WCAG AA |
Similar named colors
FAQ
What is the HEX code for grey?
grey is #808080 in hex, rgb(128, 128, 128) in decimal and hsl(0, 0%, 50%) in HSL. In CSS you can write either color: grey; or color: #808080; — they are equivalent.
What colors go with grey?
The complementary #609f9f gives the strongest contrast, the analogous pair #9f6080 / #9f8060 is the safest, and the triad #609f60 / #60609f adds more tension. All three are derived from the 0° hue of #808080.
Does #808080 read better on white or black?
Its contrast is 3.95:1 against white and 5.32:1 against black. Use #000000 text on it — that gives 5.32:1, which meets WCAG AA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.