Gray
#808080About 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.
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) |
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.