Lavender Hex Code: #E6E6FA and Soft Purple Shades

Featured graphic for “Lavender Hex Code” showing color swatches and codes

The lavender hex code is #E6E6FA, the official CSS color named lavender. Many people are surprised when they see it: it is a very pale, slightly blue tint, almost white, not the soft purple of lavender flowers.

That’s because there are really two “lavenders”: the CSS color and the flower color. This guide gives you the exact codes for both, explains the difference, and lists 20 lavender shades from the palest tints to deep lavender, with palettes and text-contrast checks.

Read our complete lavender color guide for meaning, shades, palettes, and combinations.

Lavender color codes

FormatValue
HEX#E6E6FA
RGBrgb(230, 230, 250)
HSLhsl(240, 67%, 94%)
CMYK (approx.)8, 8, 0, 2
CSS namelavender

Its hue is 240°, pure blue on the HSL wheel, and its lightness is 94%. That high lightness is why CSS lavender looks almost white with a cool blue-violet hint.

Why there are two “lavenders”

The CSS name lavender comes from an older list of named colors and describes a pale tint. The color most people call lavender, the purple of the flower, is much more saturated and darker.

CSS lavenderFloral lavender
Hex#E6E6FA#B57EDC (commonly listed value)
RGB230, 230, 250181, 126, 220
HSL240°, 67%, 94%275°, 57%, 68%
LookPale, blue-tinted, near whiteSoft, true purple
Best useBackgroundsAccents, illustrations, branding

Floral lavender has no official CSS name, so its value varies between sources; #B57EDC is the one most often listed. If you want “lavender” to look purple in your design, use a floral or lilac shade from the tables below, not the CSS keyword.

20 lavender shades

Official CSS lavenders and purples

NameHexRGB
LavenderBlush#FFF0F5255, 240, 245
Lavender#E6E6FA230, 230, 250
Thistle#D8BFD8216, 191, 216
Plum#DDA0DD221, 160, 221
Violet#EE82EE238, 130, 238
Orchid#DA70D6218, 112, 214
MediumPurple#9370DB147, 112, 219

LavenderBlush leans pink, despite its name. Violet in CSS is a light pink-purple, not the deep violet of a rainbow.

Pale lavenders

HexRGBDark text contrast
#EAE7F9234, 231, 24915.55:1
#EBE0F5235, 224, 24514.85:1
#E1D7F4225, 215, 24413.69:1
#D6CFED214, 207, 23712.60:1

Lilac and mauve

HexRGBDark text contrast
#D3B8E0211, 184, 22410.52:1
#CAA9D6202, 169, 2149.13:1
#C9A6C9201, 166, 2018.80:1
#BD97D8189, 151, 2167.72:1
#BE95C6190, 149, 1987.47:1

Deep lavender

HexRGBWhite text contrast
#855EBA133, 94, 1864.88:1
#733FA6115, 63, 1667.02:1
#5A428A90, 66, 1388.14:1
#5F367D95, 54, 1259.09:1

Lavender vs lilac vs mauve

  • Lavender is a light purple with a blue lean.
  • Lilac is similar but a little pinker and warmer.
  • Mauve is grayer and more muted, often with a pink-brown undertone.

None of these has one universal hex value except CSS lavender, so choose a shade and record its code.

Lavender palettes

1. Calm lavender (CSS lavender background)

RoleHex
Background#E6E6FA
Buttons, links#6A4C93 (deep purple)
Text#2E2A47 (dark indigo)

Deep purple scores 5.56:1 and dark indigo 11.09:1 on #E6E6FA.

2. Floral accent

RoleHex
Background#FFFFFF
Accent, illustrations#B57EDC
Text, buttons#6A4C93

White text on #B57EDC scores only 3.01:1, so use the floral lavender for shapes and large headings, and deep purple #6A4C93 (6.85:1 on white) for text and buttons.

3. Soft spa

RoleHex
Background#F5F0FA
Cards#D3B8E0
Text#4B3869

#4B3869 scores 9.05:1 on the background. Gentle and relaxing for wellness and beauty brands.

Lavender also sits naturally among pastels; our pastel combinations guide shows more pairings.

Text on lavender

Light lavenders need dark text: white on #E6E6FA scores just 1.23:1. Deep purples and indigos look more harmonious than pure black. Only the deep lavenders (#855EBA and darker) can carry white text; #855EBA passes 4.5:1 by a small margin, so the darker three are safer for small text.

For neighboring purples and blues on the color wheel, see our analogous colors guide.

Common mistakes with lavender

  1. Using CSS lavender and expecting purple. #E6E6FA is almost white. Fix: use #B57EDC or a lilac shade for visible purple.
  2. White text on floral lavender. 3.01:1 fails for normal text. Fix: use deep purple text or dark text.
  3. Too many pastels at full strength. The page looks washed out. Fix: anchor pastels with one deep color for text and buttons.
  4. Trusting names like Violet. CSS Violet is light pink-purple. Fix: choose by hex code.

FAQ

What is the hex code for lavender?

The CSS color lavender is #E6E6FA, which is rgb(230, 230, 250).

Why does #E6E6FA look almost white?

Its lightness is 94%. The CSS keyword describes a pale tint, not the purple of lavender flowers.

What is the hex code for floral lavender?

There is no official one. #B57EDC is the value most commonly listed.

Is lavender purple or blue?

It sits between them. CSS lavender has a blue hue (240°); floral lavender is a true light purple (about 275°).

What text color works on lavender?

Dark indigo, deep purple or near-black. Dark indigo #2E2A47 scores 11.09:1 on #E6E6FA.

Choose your lavender

Use #E6E6FA for a pale, airy background, #B57EDC for a true lavender accent, and a deep lavender or indigo for text. Check contrast and record your chosen codes.

Scroll to Top