Lavender hex code

#E6E6FA

The CSS hex code for lavender is #E6E6FA, which is RGB 230, 230, 250. That is a very pale, almost white lavender. Many people mean the deeper color of the flower, so sites also list #D3D3FF, #967BB6 and #A76BCF for the same name.

0

Click a value to copy it. Move the slider to try a lighter or darker version; the code samples further down follow it.

Runs in your browser. Nothing you type is uploaded.

Lavender color codes

These are all the same lavender, written for different tools. Web and app design use HEX, RGB and HSL, print uses CMYK, and CIE Lab and LCH describe the color the way the eye sees it. Click any code in the tool above to copy it.

FormatValue
HEX#E6E6FA
RGBrgb(230, 230, 250)
HSLhsl(240, 67%, 94%)
HSVhsv(240, 8%, 98%)
CMYK8, 8, 0, 2
CIE Lab91.8, 3.7, -9.7
LCH91.8, 10.4, 291.0
Decimal15,132,410
Binary11100110 11100110 11111010
CSS color namelavender
Lavender swatch, hex #E6E6FA, with lighter and darker shades

To turn any other code into these values, paste it into the hex to RGB converter.

Which lavender hex code should you use?

Different color sites give different codes for lavender. These are the four you are most likely to run into, where each one comes from and how they differ.

#E6E6FACSS color name lavender, also used by HTMLColorCodes and Muzli ColorsVery pale and bluish. Wikipedia calls it lavender mist.
#D3D3FFFigma's color libraryA pale periwinkle lavender.
#967BB6Lavender purple on ColorHexa, cited in Google's AI answerA medium, grayish purple. Closest to dried lavender.
#A76BCFRich lavender on Encycolorpedia, also cited in Google's AI answerStronger and more purple.

Lavender has a wider spread than almost any other color name. The CSS code is barely tinted, while the flower is a medium violet. Pick based on use: #E6E6FA for backgrounds, #967BB6 when the color itself needs to be seen as lavender.

If a client or brand says "lavender", ask for a sample. Two people can mean colors as far apart as #E6E6FA and #A76BCF.

Measured as CIE76 color distance from #E6E6FA, #D3D3FF is 14.1, #967BB6 is 43.9 and #A76BCF is 62.4. A distance under about 2.3 is hard to see, so all of these are visibly different from the main code. Codes checked on November 7, 2026.

Shades of lavender

Pale purples close to lavender. The ones marked CSS work as color names in any stylesheet.

Lavender (CSS)#E6E6FACSS lavender
Lavender purple#967BB6ColorHexa
Rich lavender#A76BCFEncycolorpedia
Thistle#D8BFD8CSS thistle
Plum#DDA0DDCSS plum
Medium purple#9370DBCSS mediumpurple
Lilac#C8A2C8Wikipedia
Periwinkle#CCCCFFWikipedia

Light lavender and dark lavender

Each step mixes lavender with 10 percent more white (tints) or black (shades), so the hue stays the same. Click a step to copy it.

E6E6FAE8E8FAEBEBFBEEEEFCF0F0FCF2F2FCF5F5FDF8F8FEFAFAFEFCFCFE
#E6E6FAWhite
E6E6FACFCFE1B8B8C8A1A1AF8A8A9673737D5C5C6445454B2E2E32171719
#E6E6FABlack

Colors that go with lavender

Lavender is cool and soft. It looks good with other pastels, with muted greens, and with silver or gray.

Sage green#9CAF88Muted and natural, like the plant itself.
Pastel pink#FFD1DCA soft pastel pair for spring and baby themes.
Silver#C0C0C0Cool and calm, good for weddings.
Dark slate blue#483D8BA darker partner for text and headings.
Cream#FFFDD0Warms lavender up so it does not look cold.

Matches from the color wheel

ComplementaryThe opposite side of the wheel
#E6E6FA, #FAFAE6
Split complementaryThe two colors beside the opposite
#E6E6FA, #FAF0E6, #F0FAE6
AnalogousNeighbors 30 degrees either side
#E6F0FA, #E6E6FA, #F0E6FA
TriadicThree colors 120 degrees apart
#E6E6FA, #FAE6E6, #E6FAE6

These come from rotating the hue of #E6E6FA (240 degrees) around the color wheel while keeping its saturation and lightness. They fit together in theory, but check them in your design: a wheel match is a starting point, not a rule.

Lavender color palettes

Three palettes built around lavender, each with a light color for backgrounds and a dark one for text. Click a palette to copy all five codes.

Lavender fieldPale to deep lavender with greens.
#E6E6FA, #C8A2C8, #967BB6, #9CAF88, #556B2F
PastelLavender with pink, blue and yellow pastels.
#E6E6FA, #FFD1DC, #B0E0E6, #FFFACD, #6B655B
Silver and lavenderCool tones for invitations and decor.
#E6E6FA, #D8BFD8, #C0C0C0, #808080, #483D8B

How to make lavender

On a screen

CSS lavender #E6E6FA has red and green both at 230 and blue at 250, so it is nearly white with a slight blue tint. For the flower color, lower red and green and keep blue higher, as in #967BB6, where blue leads at 182.

With paint

Mix a lot of white with a little purple. A blue-leaning purple gives a cool lavender, a red-leaning one gives a pinker lilac. A touch of gray makes it look more like dried lavender.

Is text readable on lavender?

WCAG asks for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text, which means 24px, or 19px bold. Black text on #E6E6FA is the readable choice.

PairingContrastNormal textLarge text
White text on lavender1.23:1FailsFails
Black text on lavender17.06:1PassesPasses

How lavender looks with color blindness

Normal vision#E6E6FA
Protanopia#E2E8FBNo red cones
Deuteranopia#E1E7F9No green cones
Tritanopia#E2E9ECNo blue cones
Achromatopsia#E8E8E8No color vision

Lavender barely changes with red-green color blindness, because it is very light and mostly blue. These are approximate simulations using the Machado matrices for full color blindness. Color blindness affects about 1 in 12 men and 1 in 200 women, mostly the red-green types, so do not use lavender as the only signal for something like an error or a selected state.

Lavender in binary

A hex code is three bytes, one each for red, green and blue. Each pair of hex digits is one byte, and each byte is 8 bits. This is how #E6E6FA is stored:

ChannelHexDecimalBinaryBits that are on
RedE623011100110128 + 64 + 32 + 4 + 2
GreenE623011100110128 + 64 + 32 + 4 + 2
BlueFA25011111010128 + 64 + 32 + 16 + 8 + 2

Joined together that is 111001101110011011111010, a 24-bit number equal to 15,132,410 in decimal. The hex to binary converter does the same for any hex value.

Lavender in CSS and code

Copy the version for your stack. The tool above updates these if you change the lightness.

/* CSS */
:root { --lavender: #E6E6FA; }
.button { background: var(--lavender); color: #1F1D1A; }

<!-- Tailwind -->
<button class="bg-[#E6E6FA] text-[#1F1D1A]">Button</button>

// SwiftUI
Color(red: 0.902, green: 0.902, blue: 0.980)

<!-- Android colors.xml -->
<color name="lavender">#E6E6FA</color>

# Python
lavender = (230, 230, 250)

Lavender color meaning

Lavender is linked with calm and rest, partly because of the plant, which is used in soaps, oils and sleep products. It also carries a sense of elegance and nostalgia, and it is a popular color for weddings and spring designs.

Where the name comes from

The color is named after the lavender plant. According to Wikipedia, lavender was first recorded as a color term in English in 1705. The CSS color is far paler than the flower, which is why Wikipedia lists the web color separately as lavender mist.

Frequently asked questions

What is the hex code for lavender?

In CSS, lavender is #E6E6FA, RGB 230, 230, 250. For the deeper flower color, #967BB6 is the most common choice.

What is the RGB code for lavender?

RGB 230, 230, 250 for CSS lavender #E6E6FA, and RGB 150, 123, 182 for lavender purple #967BB6.

What is the difference between lilac and lavender?

Lilac, often #C8A2C8, is pinker and warmer. Lavender leans blue. Both are pale purples named after flowers, so they are easy to mix up.

What is the hex code for light lavender?

CSS lavender #E6E6FA is already very light. For something between that and the flower color, try a tint of #967BB6, or Figma's #D3D3FF.

What color text goes on lavender?

Dark text. Black on #E6E6FA has a contrast ratio of 17.06 to 1. White on it is only 1.23 to 1, which fails WCAG.

What colors go with lavender?

Sage green, pastel pink, silver and cream, with a dark slate blue or charcoal for text.

Scroll to Top