Light Gray color (#D3D3D3)
Light Gray is one of the 148 CSS named colors. Use the keyword lightgray
anywhere CSS accepts a color, or its hex code #D3D3D3, which is rgb(211, 211, 211) in RGB. The keyword lightgrey produces exactly the same color.
It is a light neutral and a perceived lightness of 87% in OKLCH. On a light gray background, black text gives the higher contrast at 14.02:1, which passes WCAG AA for normal text.
Light Gray color codes
| CSS name | lightgray |
|
|---|---|---|
| HEX | #D3D3D3 |
|
| HEX (8-digit) | #D3D3D3FF |
|
| RGB | rgb(211, 211, 211) |
|
| HSL | hsl(0, 0%, 83%) |
|
| HSV / HSB | hsv(0, 0%, 83%) |
|
| OKLCH | oklch(86.7% 0 89.9) |
|
| CMYK | cmyk(0%, 0%, 0%, 17.3%) |
Contrast with white and black
WCAG 2 contrast ratios and APCA lightness contrast (Lc) for light gray used as text and as a background.
Tints and shades of light gray
Tints mix light gray with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.
Tints
Shades
Colors that go with light gray
Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.
Complementary
Analogous
Triadic
Split-Complementary
Light Gray with color blindness
Approximately how light gray appears with each type of color vision deficiency. Test full designs with the color blindness simulator.
Using light gray in CSS
.element {
color: lightgray;
background-color: #d3d3d3;
border-color: rgb(211 211 211 / 50%);
outline-color: oklch(86.7% 0 89.9);
}Similar named colors
See all shades of gray or browse every CSS color name.