Gray color: hex code #808080

#808080 rgb(128, 128, 128)
Shades of gray

Gray has the hex code #808080. It is a gray.

In the RGB color model it is made of 50.2% red, 50.2% green and 50.2% blue (128, 128, 128).

Its hue angle is 0°, with 0% saturation and 50% lightness. For print, the CMYK equivalent is 0% cyan, 0% magenta, 0% yellow and 50% black.

You can use it in CSS with the keyword gray.

Black text is the more readable choice on this background (contrast 5.32:1).

Gray (#808080) color codes

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%)
CIE LABlab(53.59, 0, 0)
CIE LCHlch(53.59, 0, 158.2)
CIE XYZxyz(20.517, 21.586, 23.504)
Decimal8421504
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Gray, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #808080RatioAAAAAAA large
Sample text5.32:1PassFailPass
Sample text3.95:1FailFailPass
#808080 as text onRatioAAAAAAA large
Sample text3.95:1FailFailPass
Sample text5.32:1PassFailPass

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #808080 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #808080; }
.text { color: #808080; }
.border { border: 2px solid #808080; }
.transparent { background-color: rgb(128 128 128 / 50%); }
.gradient { background: linear-gradient(to right, #808080, #808080); }
Background
Text color
Border

Similar colors

See #808080 on its hex code page

Questions

What color is #808080?
#808080 is a gray known as Gray. It belongs to the gray family of colors.
What is the RGB value of Gray?
The RGB value is 128, 128, 128: 128 red, 128 green and 128 blue on a 0 to 255 scale.
What is the complementary color of Gray?
The complementary color is #808080, found by rotating the hue 180° on the color wheel.
Is black or white text better on #808080?
Black text. Black text has a contrast ratio of 5.32:1 and white text 3.95:1. WCAG asks for at least 4.5:1 for normal text.