designwithfocus

Gray Color Code

HEX, RGB, CMYK, shades, palettes and contrast.

Free No sign-up Runs in your browser

gray

HEX#808080
RGBrgb(128, 128, 128)
RGBArgba(128, 128, 128, 1)
HSLhsl(0, 0%, 50%)
HSLAhsla(0, 0%, 50%, 1)
HSVhsv(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)
LABlab(53.6% 0 0)
LCHlch(53.6% 0 180)
OKLCHoklch(60% 0 0)
OKLABoklab(0.6 0 0)
HWBhwb(0 50% 50%)
XYZxyz(20.5, 21.6, 23.5)
Decimal8421504
Tailwindzinc-500
Namegray

Shades

#6B6B6B
#555555
#404040
#2B2B2B
#151515

Tints

#959595
#AAAAAA
#C0C0C0
#D5D5D5
#EAEAEA

Harmonies

complementary
#808080
#808080
#5A5A5A
#A6A6A6
#A6A6A6
analogous
#808080
#808080
#808080
#808080
#808080
triadic
#808080
#808080
#808080
#A6A6A6
#5A5A5A

Contrast

vs White3.95:1 — AA large
vs Black5.32:1 — AA

Colour-blind preview (simulation)

#808080

How to use Gray Color Code

  1. Look at the Gray swatch and copy the HEX, RGB or HSL value you need.
  2. Use the shades and tints below for darker and lighter versions.
  3. Check the contrast values before using it for text.

Gray colour values

Gray is #808080 in HEX. Its RGB values are 128, 128 and 128.

In HSL it is 0 degrees hue, 0% saturation and 50% lightness. In CMYK it is 0%, 0%, 0%, 50%.

FormatValue
HEX#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
CMYKcmyk(0%, 0%, 0%, 50%)

Gray shades and tints

Darker shades of Gray run from #6B6B6B to #151515. Lighter tints run from #959595 to #EAEAEA.

Use a darker shade for headings and a lighter tint for backgrounds.

ShadeHEX
Shade 1#6B6B6B
Shade 2#555555
Shade 3#404040
Shade 4#2B2B2B
Shade 5#151515

FAQ

What is the HEX code for Gray?

The HEX code for Gray is #808080.

What is Gray in RGB?

Gray is rgb(128, 128, 128).

Can I use this colour in CSS?

Yes. Copy the HEX or RGB value and paste it into any CSS colour property.

Is this colour free to use?

Yes. Colour values are facts, not owned designs, so you can use them anywhere.

Report a problem with this tool