Gray Color
NeutralsA neutral tone exactly halfway between black and white.
Conversions
#808080
rgb(128, 128, 128)
hsl(0, 0%, 50.2%)
hsv(0, 0%, 50.2%)
cmyk(0%, 0%, 0%, 49.8%)
lab(53.59, -0, 0)
lch(53.59, 0, 180)
oklch(60%, 0, 0)
hwb(0, 50.2%, 49.8%)
Harmony colors
Accessibility
Black text reads better on this background (5.32:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#808080 · ΔE 0
Deuteranopia
#808080 · ΔE 0
Tritanopia
#808080 · ΔE 0
Achromatopsia
#808080 · ΔE 0
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #808080;
bg-[#808080]
Related colors
Frequently asked questions
Gray (#808080) is rgb(128, 128, 128) in RGB.
No, #808080 is not web-safe. The nearest web-safe colors are among its tones and shades below.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #808080, or check how it holds up for accessibility.