Color values
#808080rgb(128, 128, 128)hsl(0 0% 50%)0°, 0%, 50%0%, 0%, 0%, 50%HEX/RGB/HSL/HSV are deterministic sRGB representations. CMYK here is a mathematical approximation, not a printer-profile conversion.
Gray is the standard CSS named color #808080. “Grey” is an equivalent CSS spelling with the same RGB value.
Gray is the CSS named color keyword gray, standardized at #808080 in sRGB.
#808080rgb(128, 128, 128)hsl(0 0% 50%)0°, 0%, 50%0%, 0%, 0%, 50%HEX/RGB/HSL/HSV are deterministic sRGB representations. CMYK here is a mathematical approximation, not a printer-profile conversion.
AA normal text: black passes; white fails.
AA large text: black passes; white passes.
WCAG contrast thresholds use 4.5:1 for normal text and 3:1 for large text. Do not round a near-threshold result upward when testing conformance.
These steps are computed by RGB-mixing #808080 toward white or black. They are generated values, not official named colors.
#E6E6E6 #CCCCCC #B3B3B3 #999999 #808080 #666666 #4D4D4D #333333 #1A1A1A Need more control? Use the Tints and Shades Generator or Lighten / Darken tool.
.example {
color: #000000;
background-color: gray;
} You can use either gray or #808080 in CSS; both resolve to the same sRGB color.
Closest entries in the current Colormapped set by simple RGB-channel distance:
RGB distance is a simple numerical comparison, not a perceptual color-difference standard.
The keyword and base sRGB value come from the standardized CSS named-color set documented by MDN’s named-color reference. Derived values on this page are computed from that sRGB value.
Contrast uses the W3C relative-luminance formula and thresholds described in WCAG Contrast (Minimum).
Convert #808080 with the HEX to RGB converter, test another foreground/background pair in the Contrast Checker, or browse the shade families.