gray Color Codes

Color Preview
Gray Color Codes
Related Colors

Complementary

#7f7f7f

Analogous

hsl(30, 0%, 50%)
hsl(330, 0%, 50%)

Triadic

hsl(120, 0%, 50%)
hsl(240, 0%, 50%)

Tetradic

hsl(90, 0%, 50%)
hsl(180, 0%, 50%)
hsl(270, 0%, 50%)
HTML Snippets
.element { background-color: #808080; }
.element { color: #808080; }

This is how the text color would appear.

<span style="color: #808080;">Colored text</span>

This text has an inline style applied.

Accessibility

Contrast Ratios

Black5.32 (AA)
White3.95 (AA Large)
Shades of Gray

hsl(0, 0%, 20%)

hsl(0, 0%, 35%)

#808080

hsl(0, 0%, 65%)

hsl(0, 0%, 80%)

Color Blindness Simulations

Protanopia (Red-Blind)

#808080

Deuteranopia (Green-Blind)

#808080

Tritanopia (Blue-Blind)

#808080

Related Palettes

About gray

gray (#808080) is a versatile color that can be used in various design contexts. Explore its hex code, RGB and HSL values, and discover complementary colors to create stunning color palettes for your projects.