Gray color: hex code #808080
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 | |
|---|---|---|
| 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%) | |
| CIE LAB | lab(53.59, 0, 0) | |
| CIE LCH | lch(53.59, 0, 158.2) | |
| CIE XYZ | xyz(20.517, 21.586, 23.504) | |
| Decimal | 8421504 | |
| Short hex | None (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 #808080 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.32:1 | Pass | Fail | Pass |
| Sample text | 3.95:1 | Fail | Fail | Pass |
| #808080 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.95:1 | Fail | Fail | Pass |
| Sample text | 5.32:1 | Pass | Fail | Pass |
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.
#808080Protanopia
no red cones#808080Deuteranopia
no green cones#808080Tritanopia
no blue cones#808080Achromatopsia
no color vision
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); }
Similar colors
#7f8181Mt. Rushmore#7e8082Ironside#858585Black Mana#858381Lingering Storm#848482Battleship Gray#848482Old Silver#838585Gryphon#878787Mithril
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.