#808080
gray
#808080 is the CSS named color "gray", an exact match. In RGB it breaks down to red 128, green 128, and blue 128 out of 255 each. In HSL terms that's a hue of 0°, 0% saturation, and 50% lightness: a mid-tone — usable as an accent for buttons, links, and icons against either a light or dark background.
Every format
| HEX | #808080 |
| RGB | rgb(128, 128, 128) |
| HSL | hsl(0° 0% 50%) |
| HSB | hsb(0° 0% 50%) |
| OKLCH | oklch(60% 0.000 0°) |
| OKLAB | oklab(60% 0.000 0.000) |
| LCH | lch(54% 0.0 0°) |
| CMYK | cmyk(0% 0% 0% 50%) |
Shades (darker)
#808080 · #727272 · #646464 · #575757 · #4a4a4a
Tints (lighter)
#808080 · #8c8c8c · #989898 · #a4a4a4 · #b1b1b1
Shades mix #808080 toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 3.95:1 — AA (large text only)
On black: 5.32:1 — AA
Frequently asked
- What is #808080 in RGB?
- #808080 is rgb(128, 128, 128) — red 128, green 128, blue 128 out of 255 each.
- Does #808080 pass WCAG contrast on a white background?
- It has a contrast ratio of 3.95:1 against white, which passes WCAG AA (large text only) for normal text.
- What's a good background color to pair with #808080?
- Black text or a black background gives better contrast (5.32:1) than white (3.95:1).