Gray
#808080rgb(128, 128, 128)hsl(0, 0%, 50%)
Gray is #808080, rgb(128, 128, 128).
In CSS: gray, grey
1 of 2 backgrounds pass AA
- On whiteFail3.95 : 1
- On ink blackPass4.85 : 1
About Gray
Gray is the hex color #808080, which translates to rgb(128, 128, 128) in RGB and hsl(0, 0%, 50%) in HSL. On the color wheel it sits at 0 degrees, with a saturation of 0 percent and a lightness of 50 percent. Gray is close to neutral, which makes it a structural color for text, borders and surfaces rather than an accent.
How Gray compares
Gray is exactly the CSS keyword gray, so you can write the keyword instead of the hex and get an identical result. In the Tailwind CSS 4.3.1 palette the nearest token is neutral-500 (#737373), at a distance of 5.2. Inside this library the closest neighbour is Stone Gray at 7.7. Sorted by lightness, Gray is number 13 of the 37 neutral colors here.
Text on Gray
One of the five common text colors below clears WCAG AA for normal text on Gray, led by Ink black at 4.85:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Gray already loaded as the background.
| Text color | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White #FFFFFF | 3.95:1 | Fail | Pass | Fail |
| Ink black #0F0F12 | 4.85:1 | Pass | Pass | Fail |
| Mid grey #6B7280 | 1.22:1 | Fail | Fail | Fail |
| Dark grey #374151 | 2.61:1 | Fail | Fail | Fail |
| Light grey #E5E7EB | 3.19:1 | Fail | Pass | Fail |
Building a palette around Gray
The pairings above give you three classic starting points. The complementary color sits opposite on the wheel and works well as an accent that draws the eye. The analogous colors sit right beside Gray for calmer, harmonious combinations. The triadic pair spaces three hues evenly for a balanced, energetic palette. Open any swatch to explore it as its own color, or open the palette generator with Gray locked and let it fill in the rest.
Full values for Gray
| Format | Value |
|---|---|
| HEX | #808080 |
| RGB | rgb(128, 128, 128) |
| HSL | hsl(0, 0%, 50%) |
| HSV | hsv(0, 0%, 50%) |
| CMYK | cmyk(0%, 0%, 0%, 50%) |
| OKLCH | oklch(59.99% 0.0000 0.00) |
| CIELAB | lab(53.59 0.00 0.00) |
Frequently asked questions
What is the RGB value of Gray?
Gray (#808080) is rgb(128, 128, 128): 128 red, 128 green and 128 blue on the 0 to 255 scale. All three channels are equal, which is why Gray has no hue at all. In HSL the same color is hsl(0, 0%, 50%).
What colour is #808080?
#808080 is Gray, a mid neutral colour with 0% saturation and 50% lightness. For print the CMYK breakdown is 0% cyan, 0% magenta, 0% yellow and 50% black. Its nearest neighbour in this library is Stone Gray, 7.7 away in CIELAB, a difference you can see.
Is Gray a CSS color name?
Yes. The keyword gray is one of the 148 named colors in CSS Color Module Level 4, so color: gray; renders exactly #808080. CSS also defines grey with the same value, so either spelling works.
What colors go with Gray?
Gray has no hue, so complementary, analogous and triadic rules all return Gray itself. As a neutral it sits under any accent color; for a one-color scheme use its own ramp, which runs from #121212 to #EDEDED in the shades and tints above.
What text color is readable on Gray?
Ink black (#0F0F12) is the most readable on Gray, at 4.85:1, which clears WCAG AA (4.5:1) but not AAA. 1 of the 5 common text colors tested passes AA for normal text.
Use Gray in a tool
Nearby colors
Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.