Toolman

lightgray — #D3D3D3

#D3D3D3

rgb(211, 211, 211) · hsl(0, 0%, 83%) · CSS keyword lightgray

Can you put text on it?

ContrastBody textLarge text
lightgray on white1.5:1
lightgray on black14.03:1AAAA

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

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

#D3D3D3 in full — tints, shades and harmonies · All named colours · Colour reference