Gray color: codes and shades of gray

Gray (grey) is #808080 in HEX and rgb(128, 128, 128). Light gray is #D3D3D3, charcoal #36454F.

HEX#808080
RGBrgb(128, 128, 128)
HSLhsl(0, 0%, 50%)
CMYK0, 0, 0, 50
OKLCHoklch(0.60 0.00 0)
Formats
HSVhsv(0, 0%, 50%)
LABlab(53.6 0.0 -0.0)
OKLABoklab(0.600 0.000 0.000)
DEC8421504

CMYK is approximate: printers differ

Open in the color picker

Shades of gray

Gainsboro#DCDCDC
Light gray#D3D3D3
Pastel gray#CFCFC4
Silver#C0C0C0
Ash gray#B2BEB5
Dark gray#A9A9A9
Blue-gray#6699CC
Cool gray#8C92AC
Warm gray#8B8580
Light slate gray#778899
Gray#808080
Slate gray#708090
Show all 15 shades
Dim gray#696969
Charcoal#36454F
Gunmetal#2A3439

The full grid lists every named gray with its code, from light to dark. CSS 'darkgray' is lighter than 'gray': a quirk from old color lists.

Gray palettes

What goes with gray

Gray goes with every color. With white and black it looks clean; with yellow, blush pink or coral it looks fresh; with navy and blue it looks calm; with wood, beige and sage it looks warm.

How to make gray

Mix black and white. Add a touch of blue for a cool gray or a touch of brown for a warm gray.

Gray is neutral, calm and modern. It stands for balance and seriousness, and it is the background color of much of the web and of many homes.

Printables

Shades of gray with names

Gray and grey are the same color: gray is the US spelling, grey the UK one. Light grays include gainsboro #DCDCDC, light gray #D3D3D3, pastel gray #CFCFC4 and silver #C0C0C0. Middle grays are gray #808080, dim gray #696969 and slate gray #708090. Grays with a tint have their own names: blue-gray #6699CC and cool gray #8C92AC lean blue, the bluish gray many people search for; warm gray #8B8580 leans brown. The dark grays are charcoal #36454F and gunmetal #2A3439.

Gray color codes

CSS gray is #808080, rgb(128, 128, 128): the same amount of red, green and blue. Every color with three equal values is a gray, from #000000 to #FFFFFF. The light gray hex code most people use is #D3D3D3 (CSS lightgray). Surprisingly, CSS darkgray is #A9A9A9, lighter than gray.

What colors go with gray

Gray goes with everything, which makes it the safest base for a room or a website. What colors go with a gray sofa? For a warm room, beige, cream, wood and terracotta; for a fresh one, white, mustard yellow and sage; for a calm one, navy and dusty blue. Does gray match with blue? Yes, especially blue-grays with navy. Blush pink and gray is soft and modern; yellow and gray is cheerful. Choose warm grays with warm colors and cool grays with cool ones.

How to make gray

Mix black and white, adding black slowly to white. Two opposite colors mixed with white also give a gray with more life.

Questions and answers

What is the gray hex code?

#808080, rgb(128, 128, 128).

What is the light grey hex code?

#D3D3D3 (CSS light gray). Gainsboro #DCDCDC is a bit lighter.

What colors go with gray?

Every color: white, black, navy, blue, yellow, blush pink, coral, sage, beige and wood.

What colours go with a grey sofa?

Cream, wood and terracotta for warmth; mustard or sage for freshness; navy for calm.

What is a bluish grey color called?

Blue-gray #6699CC, slate gray #708090 or cool gray #8C92AC.