NEUTRAL

Gray

No. 139

#808080rgb(128, 128, 128)hsl(0, 0%, 50%)

Gray is #808080, rgb(128, 128, 128).

In CSS: gray, grey

Conversions
HEX#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
HSVhsv(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)
Copy CSS
color: #808080; /* rgb */ color: rgb(128, 128, 128); /* hsl */ color: hsl(0, 0%, 50%);
Shades
Tints

Colors that go with Gray

Contrast

1 of 2 backgrounds pass AA

  1. On whiteFail3.95 : 1
  2. 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.

Contrast of common text colors on Gray. AA normal text needs 4.5:1, AA large text and non-text elements need 3:1, AAA normal text needs 7:1.
Text colorRatioAA normalAA largeAAA normal
White #FFFFFF3.95:1FailPassFail
Ink black #0F0F124.85:1PassPassFail
Mid grey #6B72801.22:1FailFailFail
Dark grey #3741512.61:1FailFailFail
Light grey #E5E7EB3.19:1FailPassFail

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

FormatValue
HEX#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
HSVhsv(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)
OKLCHoklch(59.99% 0.0000 0.00)
CIELABlab(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.