Toolman

lavender — #E6E6FA

#E6E6FA

rgb(230, 230, 250) · hsl(240, 67%, 94%) · CSS keyword lavender

Can you put text on it?

ContrastBody textLarge text
lavender on white1.23:1
lavender on black17.06:1AAAA

As a background, lavender takes black text: 17.06:1 against 1.23: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.

Where the name comes from

Named for the flower, which is a good deal less blue than the CSS colour that carries its name.

Using it

color: lavender;
color: #e6e6fa;
color: rgb(230 230 250);

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.

Colours close to lavender

Frequently asked questions

What is the hex code for lavender?

The hex code for lavender is #E6E6FA — RGB 230, 230, 250.

Can I use lavender for text?

Not on a white background. lavender reaches only 1.23:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.

Should text on lavender be black or white?

Black — 17.06:1 against 1.23:1 the other way.

Other named colours

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