NEUTRAL

Gray

#808080
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%);
Contrast
On whiteFail · 3.95 : 1
On ink blackPass · 4.85 : 1
Shades
Tints

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.

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)

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.