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.
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.
| Format | Value |
|---|---|
| HEX | #E6E6FA |
| RGB | rgb(230, 230, 250) |
| HSL | hsl(240, 67%, 94%) |
| HSV | hsv(240, 8%, 98%) |
| CMYK | 8, 8, 0, 2 |
| CIE Lab | 91.8, 3.7, -9.7 |
| LCH | 91.8, 10.4, 291.0 |
| Decimal | 15,132,410 |
| Binary | 11100110 11100110 11111010 |
| CSS color name | lavender |

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.
lavender, also used by HTMLColorCodes and Muzli ColorsVery pale and bluish. Wikipedia calls it lavender mist.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.
lavenderthistleplummediumpurpleLight 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.
Colors that go with lavender
Lavender is cool and soft. It looks good with other pastels, with muted greens, and with silver or gray.
Matches from the color wheel
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.
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.
| Pairing | Contrast | Normal text | Large text |
|---|---|---|---|
| White text on lavender | 1.23:1 | Fails | Fails |
| Black text on lavender | 17.06:1 | Passes | Passes |
How lavender looks with color blindness
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:
| Channel | Hex | Decimal | Binary | Bits that are on |
|---|---|---|---|---|
| Red | E6 | 230 | 11100110 | 128 + 64 + 32 + 4 + 2 |
| Green | E6 | 230 | 11100110 | 128 + 64 + 32 + 4 + 2 |
| Blue | FA | 250 | 11111010 | 128 + 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.