lightgray — #D3D3D3
#D3D3D3
rgb(211, 211, 211) · hsl(0, 0%, 83%) · CSS keyword lightgray
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| lightgray on white | 1.5:1 | — | — |
| lightgray on black | 14.03:1 | AA | AA |
As a background, lightgray takes black text: 14.03:1 against 1.5:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: lightgray;
color: #d3d3d3;
color: rgb(211 211 211);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
lightgrey is the same colour: CSS accepts both spellings and they are byte for byte identical, so color: lightgray and color: lightgrey render the same.
Colours close to lightgray
- gainsboro — #DCDCDC
- thistle — #D8BFD8
- silver — #C0C0C0
- lightblue — #ADD8E6
- lavender — #E6E6FA
- powderblue — #B0E0E6
Frequently asked questions
What is the hex code for lightgray?
The hex code for lightgray is #D3D3D3 — RGB 211, 211, 211.
Can I use lightgray for text?
Not on a white background. lightgray reaches only 1.5:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.
Should text on lightgray be black or white?
Black — 14.03:1 against 1.5:1 the other way.
Other named colours
- lightgreen — #90EE90
- lightpink — #FFB6C1
- lightsalmon — #FFA07A
- lightseagreen — #20B2AA
- lightskyblue — #87CEFA
- lightslategray — #778899
- lightsteelblue — #B0C4DE
- lightyellow — #FFFFE0
- lime — #00FF00
- limegreen — #32CD32
- linen — #FAF0E6
- magenta — #FF00FF
#D3D3D3 in full — tints, shades and harmonies · All named colours · Colour reference