Skip to content

Light gray (Grey)

Light gray is a true neutral, with equal parts red, green and blue. Hex code #D3D3D3.

Light gray#D3D3D3

Light gray color codes

  • CSS namelightgray, lightgrey
  • HEX#D3D3D3
  • RGBrgb(211, 211, 211)
  • HSLhsl(0, 0%, 83%)
  • OKLCHoklch(86.7% 0 0)
HSB and CMYK values
  • HSB / HSVhsb(0, 0%, 83%)
  • CMYKC0 M0 Y0 K17

White text

1.49:1 · fails WCAG

Black text

14.02:1 · passes WCAG AAA

Shades of light gray

A darker shade of light gray is #9C9C9C (300).

Colors that go with light gray

Tones

Light gray has no complementary color: grays, black and white have no hue to turn around the color wheel.

Click a color to copy its hex code.

Colors similar to light gray

Each compared with light gray.

About this color

Light gray in CSS and design

Light gray is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same light gray:

color: lightgray;
color: #D3D3D3;
color: rgb(211, 211, 211);
color: hsl(0, 0%, 83%);

What to know about light gray

Light gray (#D3D3D3) has the same value in CSS as in the X11 color list it comes from. In X11 the three grays run in order: dark gray (#A9A9A9), then the X11 gray, #BEBEBE, then light gray. CSS puts its own, darker gray (#808080) from the 16 basic colors in the middle instead, which is why its dark gray ends up lighter than gray. Gainsboro (#DCDCDC), the next gray up, is only 9 steps lighter per channel.

Light gray and the other grays

Light gray sits between silver (#C0C0C0) and gainsboro (#DCDCDC) in lightness. As text on light gray, black and dark slate gray reach the 4.5:1 contrast that WCAG AA asks for.

GrayHexLightnessContrast with light gray
Black#0000000%14.02:1
Dark slate gray#2F4F4F40%5.96:1
Dim gray#69696952%3.66:1
Slate gray#70809059%2.70:1
Gray#80808060%2.63:1
Light slate gray#77889962%2.43:1
Dark gray#A9A9A973%1.56:1
Silver#C0C0C081%1.21:1
Light gray#D3D3D387%–
Gainsboro#DCDCDC89%1.09:1
White smoke#F5F5F597%1.37:1
White#FFFFFF100%1.49:1

Lightness is OKLCH lightness, which follows how light a color looks.

Frequently asked questions

What is the hex code for light gray (grey)?

#D3D3D3. Light gray and light grey are two spellings for the same color, and CSS accepts both keywords, lightgray and lightgrey, in every browser.

What is light gray in RGB and HSL?

In RGB it is rgb(211, 211, 211) and in HSL hsl(0, 0%, 83%). In CMYK it is about C0 M0 Y0 K17, though printed colors vary with paper and ink.

Should I use black or white text on light gray?

Black text works better: it has a contrast ratio of 14.02:1 and passes WCAG AAA. White text reaches 1.49:1.

What is the complementary color of light gray?

Light gray has no complementary color. A complement is found by turning a color's hue halfway around the color wheel, and grays, black and white have no hue to turn.

Which colors go with light gray?

As a neutral, light gray goes with almost any color. Its own tones, from #4D4D4D to #D3D3D3, make a calm palette, and a single vivid accent stands out against it.