Skip to content

Light Grey Color

CSS light grey #D3D3D3 — a soft neutral gray. lightgrey and lightgray both work.

HEX
#D3D3D3
RGB
rgb(211, 211, 211)
HSL
hsl(0, 0%, 82.7%)
HSV
hsv(0, 0%, 82.7%)
CMYKapproximation
cmyk(0%, 0%, 0%, 17%)
CSS name
lightgrey

Open light grey in the color picker to adjust it or copy other formats.

About light grey

#D3D3D3 is the CSS named color lightgrey, which can also be spelled lightgray. All three channels are 211, so it is a perfectly neutral gray.

It sits between gainsboro (#DCDCDC), which is a little lighter, and silver (#C0C0C0), which is darker.

#D3D3D3 is the value of the CSS named color lightgrey, defined in the CSS Color specification and identical in every browser.

Other colors called light grey

  • Gainsboro (CSS) #DCDCDCSlightly lighter.
  • Silver (CSS) #C0C0C0Slightly darker.

Light Grey shades and tints

Shades mix light grey with black, tints mix it with white — useful for hover states, borders and backgrounds. Click a swatch to copy its HEX code.

Colors that go with light grey

Light Grey is a neutral with no hue, so it has no complementary or triadic colors of its own. Neutrals go with almost any color — pick an accent in the color wheel or the palette generator.

Light Grey contrast and readability

On a light grey background, black text reads best (14.02:1). Here is how light grey works as a text color:

#D3D3D3 on white

1.49:1

Normal text sample

Large text

  • AA normal text (4.5:1)Fail
  • AA large text (3:1)Fail
  • AAA normal text (7:1)Fail
  • AAA large text (4.5:1)Fail

#D3D3D3 on black

14.02:1

Normal text sample

Large text

  • AA normal text (4.5:1)Pass
  • AA large text (3:1)Pass
  • AAA normal text (7:1)Pass
  • AAA large text (4.5:1)Pass

Light grey is ideal for borders, dividers, skeleton loaders and subtle backgrounds. It is far too light for text on white — use it for text only on dark backgrounds.

Using light grey in CSS and HTML

CSS custom property
:root {
  --color-light-grey: #D3D3D3;
}

.highlight {
  background-color: var(--color-light-grey);
}
Background and text color
.banner {
  background-color: lightgrey;
  color: #000000;
}

.label {
  color: #D3D3D3;
  border: 2px solid rgb(211, 211, 211);
}
Inline style in HTML
<p style="background-color: #D3D3D3; color: #000000;">
  Light Grey background
</p>

Light Grey color FAQ

What is the HEX code for light grey?
Light Grey is #D3D3D3 in HEX and rgb(211, 211, 211) in RGB. It is also the CSS named color lightgrey, so color: lightgrey and color: #d3d3d3 give exactly the same result.
What is light grey in CMYK?
Approximately 0%, 0%, 0%, 17% (cyan, magenta, yellow, black). This is the standard profile-free conversion of #D3D3D3; for professional print, check the value against your printer's color profile.
What colors go with light grey?
As a neutral, light grey goes with almost any color. Pair it with one strong accent color and use lighter or darker shades of light grey for backgrounds, borders and text.
Should I use black or white text on light grey?
Black text: it has a contrast ratio of 14.02:1 on #D3D3D3, which meets WCAG AAA for normal text.