Gray Color
Gray is a medium gray with hex code #808080. Here are its RGB, HSL, CMYK and OKLCH values, tints and shades, matching colours and CSS.
Gray color codes
| HEX | #808080 | |
|---|---|---|
| RGB | rgb(128, 128, 128) | |
| HSL | hsl(0, 0%, 50%) | |
| HSV | 0°, 0%, 50% | |
| CMYK | 0%, 0%, 0%, 50% | |
| OKLCH | oklch(60% 0 89.9) | |
| Tailwind | bg-[#808080] |
Closest Tailwind colour: neutral-500 (#737373). Convert any colour in the Color Converter.
About Gray
Gray (#808080) is a medium gray. In the RGB model it is 50% red, 50% green and 50% blue; 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.
It is a neutral colour and appears in our shades of gray. Text on it reads best in black (5.3:1 contrast).
Gray tints and shades
Tints mix gray with white; shades mix it with black. Click to copy.
Colors that go with Gray
Gray is a neutral, so it works with almost any colour. These pairings use its tone with a hue added.
Complementary
Analogous
Triadic
Split complementary
Gray contrast
- AA text fail
- AAA text fail
- AA large pass
- AA text pass
- AAA text fail
- AA large pass
Using Gray in CSS
.brand {
color: #808080;
}
.button {
background: #808080;
color: #111;
}
.hero {
background: linear-gradient(135deg, #acacac, #808080, #535353);
}Similar colors
Gradients with Gray
Gray FAQ
What color is Gray?
Gray is a medium gray. Its hex code is #808080 and it is a neutral colour.
What is the hex code for Gray?
The hex code for Gray is #808080. In RGB that is rgb(128, 128, 128), and in HSL hsl(0, 0%, 50%).
What is Gray in CMYK?
Gray is roughly C 0%, M 0%, Y 0%, K 50% in CMYK. Screen-to-print conversion depends on the printer profile, so check a proof for brand colours.
What colors go well with Gray?
Gray is a neutral and pairs with almost any colour; one saturated accent usually looks best.
Is white or black text better on Gray?
Black text reads better on Gray: 5.3:1 contrast, against 3.9:1 for white. WCAG asks for 4.5:1 for body text.
