#808080 color (gray)

#808080 is rgb(128, 128, 128) in RGB and hsl(0, 0%, 50%) in HSL. It is exactly the CSS color gray. Use black text on it (contrast 5.32:1).

#808080gray / grey
HEX#808080
RGBrgb(128, 128, 128)
RGB percentrgb(50.2%, 50.2%, 50.2%)
HSLhsl(0, 0%, 50%)
HSV / HSBhsv(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)
CIELAB (D65)lab(53.6 0 0)

Edit in the color converter → · Check contrast → · Shades →

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
RGBrgb(128, 128, 128)
RGB percentrgb(50.2%, 50.2%, 50.2%)
HSLhsl(0, 0%, 50%)
HSV / HSBhsv(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)
CIELAB (D65)lab(53.6 0 0)
Decimal8421504
Binary10000000 10000000 10000000

HEX 80 80 80 → 128, 128, 128 (each pair is a base-16 number: 8×16 + 0 = 128)

Color harmonies

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 #808080RatioAA normalAA largeAAA normalAAA large
White text3.95:1FailPassFailFail
Black text5.32:1PassPassFailPass
White text on #808080
Black text on #808080
#808080 text on white
#808080 text on black

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

NameHEXΔE 2000
gray#8080800
slategray#7080908.9
dimgray#6969699.1
lightslategray#7788999.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; }

Frequently asked questions

What color is #808080?
A medium neutral gray in the gray family. Closest CSS name: gray.
What is #808080 in RGB?
rgb(128, 128, 128): red 128, green 128, blue 128.
What is the complementary color of #808080?
#808080, found by rotating the hue 180°.