CSS named color
LightGray #D3D3D3
LightGray is a very light gray with the hex code #D3D3D3, which converts to rgb(211, 211, 211). The British spelling lightgrey is an alias and renders exactly the same color. Open #D3D3D3 in the converter to tweak it.
LightGray color values
| HEX | #D3D3D3 |
|---|---|
| HEX (shorthand) | — |
| RGB | rgb(211, 211, 211) |
| RGBA | rgba(211, 211, 211, 1) |
| 8-digit HEX | #D3D3D3FF |
| HSL | hsl(0, 0%, 83%) |
| HSV / HSB | 0°, 0%, 83% |
| CMYK | 0%, 0%, 0%, 17% |
| RGB 0–1 | 0.827, 0.827, 0.827 |
| Decimal | 13882323 |
| CSS keyword | lightgray |
How #D3D3D3 converts to RGB
Split the hex code into three pairs and read each pair as a base-16 number: D3 → 211, D3 → 211, D3 → 211. That gives rgb(211, 211, 211). The step-by-step guide explains the math.
Shades of LightGray
Mixed toward black in 10% steps. Click a swatch to copy its hex.
Tints of LightGray
Mixed toward white in 10% steps.
Color harmonies
Hue rotations of LightGray on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.
LightGray has no hue (saturation is 0%), so hue-based harmonies collapse to the same gray. Grays pair with any accent color — pick one from the palette generator.
Contrast and accessibility
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | LightGray | 1.49:1 | Fail |
| Black | LightGray | 14.02:1 | AAA |
Use black text on a lightgray background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.
Use LightGray in CSS
.element {
color: lightgray; /* keyword */
background-color: #D3D3D3; /* hex */
border-color: rgb(211 211 211 / 50%); /* 50% transparent */
}
Need it semi-transparent? Append an alpha byte: #D3D3D380 is LightGray at 50% opacity. See RGBA & transparency.
Similar named colors
FAQ
What is the HEX code for LightGray?
The CSS named color lightgray is #D3D3D3 in hexadecimal. In CSS you can write color: lightgray; or color: #D3D3D3; — both produce the same pixel.
What is LightGray in RGB?
LightGray is rgb(211, 211, 211): red 211, green 211, blue 211 on the 0–255 scale. As normalized 0–1 floats that is (0.827, 0.827, 0.827).
Is white or black text more readable on LightGray?
Black text is more readable. White on #D3D3D3 has a contrast ratio of 1.49:1 (Fail), black on #D3D3D3 has 14.02:1 (AAA). WCAG AA needs 4.5:1 for normal text.