Light gray (Grey)
Light gray is a true neutral, with equal parts red, green and blue. Hex code #D3D3D3.
Light gray color codes
- CSS name
lightgray, lightgrey - HEX
#D3D3D3 - RGB
rgb(211, 211, 211) - HSL
hsl(0, 0%, 83%) - OKLCH
oklch(86.7% 0 0)
HSB and CMYK values
- HSB / HSV
hsb(0, 0%, 83%) - CMYK
C0 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
- Gainsboro#DCDCDC
Slightly lighter
- Silver#C0C0C0
Darker
- Linen#FAF0E6
Lighter, a faint orange tint
- Lavender blush#FFF0F5
Lighter, a faint pink tint
- White smoke#F5F5F5
Lighter
- Alice blue#F0F8FF
Lighter, a faint blue tint
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.
| Gray | Hex | Lightness | Contrast with light gray |
|---|---|---|---|
| Black | #000000 | 0% | 14.02:1 |
| Dark slate gray | #2F4F4F | 40% | 5.96:1 |
| Dim gray | #696969 | 52% | 3.66:1 |
| Slate gray | #708090 | 59% | 2.70:1 |
| Gray | #808080 | 60% | 2.63:1 |
| Light slate gray | #778899 | 62% | 2.43:1 |
| Dark gray | #A9A9A9 | 73% | 1.56:1 |
| Silver | #C0C0C0 | 81% | 1.21:1 |
| Light gray | #D3D3D3 | 87% | – |
| Gainsboro | #DCDCDC | 89% | 1.09:1 |
| White smoke | #F5F5F5 | 97% | 1.37:1 |
| White | #FFFFFF | 100% | 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.