About #808080
#808080 is a medium, neutral gray. It belongs to the gray family and reads as a neutral color. All three channels are equal (128), so it is a pure gray at 50.2% brightness with no hue at all. Colors like this are typically used for borders, secondary text, dividers and neutral UI.
Color conversions
| HEX | #808080 |
|---|---|
| RGB | rgb(128, 128, 128) |
| RGB percent | rgb(50.2%, 50.2%, 50.2%) |
| HSL | hsl(0, 0%, 50%) |
| HSV / HSB | hsv(0, 0%, 50%) |
| CMYK | cmyk(0%, 0%, 0%, 50%) |
| CIELAB (D65) | lab(53.6 0 0) |
| Decimal | 8421504 |
| Binary | 10000000 10000000 10000000 |
HEX 80 80 80 → 128, 128, 128 (each pair is a base-16 number: 8×16 + 0 = 128)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.
Tints and shades of #808080
Tints (mixed with white)
Shades (mixed with black)
Tones (mixed with gray)
Contrast and accessibility
| Text on #808080 | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 3.95:1 | Fail | Pass | Fail | Fail |
| Black text | 5.32:1 | Pass | Pass | Fail | Pass |
Relative luminance is 0.2159 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.
Color blindness simulation
Protanopia#808080
Deuteranopia#808080
Tritanopia#808080
Achromatopsia#808080
People with red–green color blindness see this color almost unchanged (ΔE 0 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.
Similar named colors
| Name | HEX | ΔE 2000 |
|---|---|---|
| gray | #808080 | 0 |
| slategray | #708090 | 8.9 |
| dimgray | #696969 | 9.1 |
| lightslategray | #778899 | 9.5 |
CSS
.element {
color: #808080;
background-color: rgb(128, 128, 128);
border: 1px solid hsl(0, 0%, 50%);
box-shadow: 0 2px 8px rgb(128 128 128 / 50%);
}
:root { --brand: #808080; }