Gray (#808080)
HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.
Preview
Contrast vs white: 3.95:1 — vs black: 5.32:1
Color values
-
HEX
#808080 -
RGB
rgb(128, 128, 128) -
HSL
hsl(0, 0%, 50%) -
CMYK
cmyk( 0, 0, 0, 49.8 ) -
Websafe
#999999
Tags
Mood
Style
Use case
Tip: tags are heuristic suggestions (helpful for browsing and inspiration).
Color Harmonies
Colors that pair well with #808080 based on color theory relationships.
The color directly opposite on the color wheel — creates maximum contrast and vibrance.
#808080
Base
#808080
Shades and tints of the same hue — cohesive, elegant, and easy to work with.
Darker shades and lighter tints of Gray, generated by adjusting lightness while keeping the same hue and saturation.
Shades (darker)
#0D0D0D
#242424
#3B3B3B
#525252
#696969
#808080
Base
#979797
#AEAEAE
#C5C5C5
#DBDBDB
#F2F2F2
Ready-to-use code snippets for #808080. Click the copy button to copy any snippet to your clipboard.
/* Background */
.element {
background-color: #808080;
}
/* Text */
.element {
color: #808080;
}
/* Border */
.element {
border: 1px solid #808080;
}
/* Linear gradient to complementary */
.element {
background: linear-gradient(
to right,
#808080,
#808080
);
}
/* Radial gradient */
.element {
background: radial-gradient(
circle,
#808080,
#808080
);
}
// SCSS variable
$gray: #808080;
// With RGB channels (useful for rgba() usage)
$gray-r: 128;
$gray-g: 128;
$gray-b: 128;
// Usage
.element {
background-color: $gray;
color: rgba($gray-r, $gray-g, $gray-b, 0.8);
}
How Gray appears to people with different types of color vision deficiency.
#808080
How the color appears with full color vision.
#808080
Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
#808080
Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
#808080
Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
#808080
Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
How to use this color
- Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
- Use CMYK when preparing print assets (posters, packaging, brochures).
- Check contrast before using it for text or important UI elements.