#808080

Gray is a medium, neutral shade in the gray color family, with a neutral feel. Its HEX code is #808080, which equals rgb(128, 128, 128) in RGB and hsl(0, 0%, 50%) in HSL. In print terms it converts to roughly C0 M0 Y0 K50, although exact CMYK results depend on the paper and color profile.

  • HEX#808080
  • RGB128, 128, 128
  • HSL0°, 0%, 50%
  • CMYK0, 0, 0, 50
  • FamilyGray
  • ToneMedium, neutral

About Gray

Gray shades are neutral and versatile. They provide calm backgrounds, readable text colors and borders, and let brighter accent colors stand out. Designers often reach for it as an accent, a button color or a background tint. Text in black is the most readable choice on this color, with a contrast ratio of 5.32:1. Its complementary color is #808080.

Download Gray as an image

Choose a size and format, then download a solid-color image — or tick colors in the library to batch-download a ZIP.

Loading colors…

Custom color

#3B82F6

Shade scale

Tip: tick the checkbox on any swatch to add it to a batch ZIP. Everything is generated in your browser — nothing is uploaded to a server.

Gray color codes

HEX#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
HSV0°, 0%, 50%
CMYK0%, 0%, 0%, 50%
Decimal8421504

Shades and tints of Gray

Lighter tints are mixed with white and darker shades are mixed with black.

  • 50#EAEAEA
  • 100#D5D5D5
  • 200#C0C0C0
  • 300#AAAAAA
  • 400#959595
  • 500#808080
  • 600#6B6B6B
  • 700#555555
  • 800#404040
  • 900#2B2B2B
  • 950#151515

Color harmonies for Gray

Contrast and accessibility of Gray

Text colorSampleContrast ratioWCAG
White text on GrayAa3.95:1AA Large only
Black text on GrayAa5.32:1AA (good)

CSS code for Gray

background-color: #808080;color: #808080;background-color: rgb(128, 128, 128);background-color: hsl(0, 0%, 50%);:root { --color-gray: #808080; }class="bg-[#808080]"

Colors similar to Gray

More gray shades

See all gray shades →

Frequently asked questions

What is the HEX code for Gray?

The HEX code for Gray is #808080.

What is the RGB value of Gray?

Gray has an RGB value of 128, 128, 128 (rgb(128, 128, 128)). In HSL it is 0°, 0%, 50%.

What text color should I use on Gray?

Use black text on Gray. White text has a contrast ratio of 3.95:1 and black text has 5.32:1; WCAG AA requires at least 4.5:1 for normal text.

What color goes well with Gray?

The complementary color of Gray is #808080. Analogous colors #808080 and #808080 also pair well.

Explore more