Light Gray Hex Code #D3D3D3
Light Gray is a very light gray with the hex code #D3D3D3. In RGB it is 211, 211, 211, and in HSL it is 0°, 0%, 83%. It is one of the 148 named colors in CSS, so you can write “lightgray” instead of the hex code. It is also written as “lightgrey”.
- HEX
- #D3D3D3
- RGB
- rgb(211, 211, 211)
- HSL
- hsl(0, 0%, 83%)
- HSV
- hsv(0°, 0%, 83%)
- CMYK
- cmyk(0%, 0%, 0%, 17%)
- CSS name
- lightgray
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Light Gray
On a white background Light Gray has a contrast ratio of 1.50:1 (Fail), and on black 14.03:1 (AAA). Black text is the better choice on top of it.
It has almost no hue of its own, so it pairs comfortably with almost any accent color.
Grays do much of the quiet work in interface design: text, borders, backgrounds and disabled states. Because they carry no strong hue, they pair with almost any accent color.
Shades and tints of Light Gray
Tints mix Light Gray with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Pairing Light Gray with an accent color
Light Gray has almost no hue of its own, so color schemes built from it would all look the same. A neutral works best as a background or text color beside an accent. This is how six accent colors contrast with Light Gray.
- Crimson #DC143C 3.33:1 against Light Gray (WCAG AA Large)
- Dark Orange #FF8C00 1.56:1 against Light Gray (WCAG Fail)
- Gold #FFD700 1.07:1 against Light Gray (WCAG Fail)
- Sea Green #2E8B57 2.84:1 against Light Gray (WCAG Fail)
- Royal Blue #4169E1 3.24:1 against Light Gray (WCAG AA Large)
- Dark Orchid #9932CC 3.81:1 against Light Gray (WCAG AA Large)
Light Gray contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Light Gray scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 1.50:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
| Black (#000000) | 14.03:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
Light Gray and color blindness
These are approximate previews of how Light Gray can look with the main types of color vision deficiency.
Light Gray looks almost the same.
Light Gray looks almost the same.
Light Gray looks almost the same.
Light Gray looks almost the same.
Gradients with Light Gray
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Light Gray to a lighter tint
background: linear-gradient(135deg, #d3d3d3 0%, #ededed 100%); Light Gray to a darker shade
background: linear-gradient(135deg, #d3d3d3 0%, #545454 100%); Light Gray to Dark Orchid
background: linear-gradient(135deg, #d3d3d3 0%, #9932cc 100%); Colors similar to Light Gray
How each close match differs from Light Gray.
Use Light Gray in code
.element {
color: #d3d3d3;
background-color: #d3d3d3;
border-color: lightgray; /* lightgray is a valid CSS color name */
} :root {
--color-light-gray: #d3d3d3;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#d3d3d3] text-[#d3d3d3] border-[#d3d3d3]"></div>
/* Tailwind v4 theme color */
@theme {
--color-light-gray: #d3d3d3;
} Light Gray questions
What is the hex code for Light Gray?
The hex code for Light Gray is #D3D3D3. In RGB that is rgb(211, 211, 211), and in HSL it is hsl(0, 0%, 83%).
Which colors go well with Light Gray?
Light Gray is a neutral color with almost no hue of its own, so it has no true complement and pairs with nearly any accent. The accents that contrast most strongly against it are Dark Orchid (3.81:1), Crimson (3.33:1), Royal Blue (3.24:1).
Should I use white or black text on Light Gray?
Black text. It has a contrast ratio of 14.03:1 against Light Gray, which is WCAG AAA. The other option scores 1.50:1.
Is Light Gray accessible as a text color on white?
No. Light Gray on white scores 1.50:1, which is below the WCAG minimum of 3:1 even for large text.
What are darker and lighter shades of Light Gray?
Mixing Light Gray with black gives #A9A9A9, #7F7F7F, #545454, #2A2A2A (20% to 80% black). Mixing it with white gives #DCDCDC, #E5E5E5, #EDEDED, #F6F6F6 (20% to 80% white).