Light Gray
Hex #D3D3D3, rgb(211 211 211). A gray or black CSS named color.
Open in palette generatorLight Gray color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Light Gray
Light Gray is a light neutral gray with the hex code #D3D3D3. In RGB it is made of 211 red, 211 green and 211 blue; in HSL its hue is 0°, with 0% saturation and 83% lightness. Its perceptual lightness (OKLCH L) is 86.7%.
It is a CSS named color, so you can write "lightgray" or "lightgrey" anywhere CSS accepts a color. Against white it has a contrast ratio of 1.50:1 and against black 14.03:1, so black text reads better on it and passes WCAG AA for normal text.
Also written as Light Grey: CSS treats both spellings as the same color.
Tints, shades and tones
Light Gray mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Light Gray 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Light Gray
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Analogous
Split complementary
Contrast and readability
WCAG 2 contrast of Light Gray with white and black. The readable text color on Light Gray is black.
On white1.50:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc 23
On black14.03:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc -80
Test any pair in the contrast checker.
Color blindness preview
How Light Gray appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#D3D3D3
- Deuteranopia#D3D3D3
- Tritanopia#D3D3D3
- Protanomaly#D3D3D3
- Deuteranomaly#D3D3D3
- Tritanomaly#D3D3D3
- Achromatopsia#D3D3D3
Colors similar to Light Gray
The closest named colors by perceptual difference (OKLab).
Use Light Gray in CSS and Tailwind
.light-gray {
color: lightgray; /* #D3D3D3 */
background-color: rgb(211 211 211);
border-color: oklch(86.7% 0 0);
}/* Tailwind CSS v4: bg-light-gray-500, text-light-gray-700... */
@theme {
--color-light-gray-50: #FAFAFA;
--color-light-gray-100: #EAEAEA;
--color-light-gray-200: #D3D3D3;
--color-light-gray-300: #B9B9B9;
--color-light-gray-400: #969696;
--color-light-gray-500: #818181;
--color-light-gray-600: #6E6E6E;
--color-light-gray-700: #595959;
--color-light-gray-800: #474747;
--color-light-gray-900: #3A3A3A;
--color-light-gray-950: #161616;
}
<!-- or the exact color, no config -->
<div class="bg-[#D3D3D3] text-[#000000]">…</div>