gray: Hex #808080, RGB and HSL
CSS Named Colors · Grays and black
gray is a CSS named color from the Grays and black group. It is exactly #808080, RGB 128, 128, 128, which is HSL 0°, 0%, 50% (rounded). Use it in CSS as color: gray; and every browser renders the same sRGB value.
- Hex
- #808080
- RGB
- 128, 128, 128
Swatch and contrast
gray specifications
| Hex | #808080 |
|---|---|
| RGB | 128, 128, 128 |
| HSL | 0°, 0%, 50% |
| Same value as | grey |
| HTML 4 basic color | Yes, one of the 16 original keywords |
gray is #808080 (50 % grey in byte terms). It is darker than darkgray (#A9A9A9).
Also known as
#808080808080
Closest RAL Classic colors
Nearby CSS named colors
All CSS named colors
Sources
- W3C: CSS Color Module Level 4, §6.1 Named Colors
- MDN Web Docs: <named-color>
- npm package color-name 2.1.1 (MIT): keyword list used as a cross-check
- Sharma, Wu & Dalal (2005): The CIEDE2000 color-difference formula
Values last checked against these sources on November 15, 2026. · How we check data
Reference values for planning and identification. Confirm critical dimensions with the manufacturer's drawing or the current edition of the standard before production.