Colors · value from the CSS Color Module Level 4 (W3C)
Lavender color: hex code #E6E6FA, RGB and palettes
Lavender is #E6E6FA (RGB 230, 230, 250), the CSS named color: a very pale blue-violet that works as a background. Use dark text on it; black reaches 17.06:1, while the color itself is only 1.23:1 on white.
- HEX
#E6E6FA- RGB
rgb(230, 230, 250)- HSL
hsl(240, 67%, 94%)
Best text on it: black at 17.06:1
Every code for Lavender
- HEX
#E6E6FA - RGB
rgb(230, 230, 250) - HSL
hsl(240, 67%, 94%) - HSV
240°, 8%, 98% - CMYK
8%, 8%, 0%, 2% - Lab
lab(91.7% 2.8 -9.7) - OKLCH
oklch(93.1% 0.027 285.9) - Decimal
15132410
Tints, shades and tones
From white to black in 10% steps, with Lavender in the middle. Tap a code to copy it.
- 90%#FDFDFF
- 80%#FAFAFE
- 70%#F8F8FE
- 60%#F5F5FD
- 50%#F3F3FD
- 40%#F0F0FC
- 30%#EEEEFC
- 20%#EBEBFB
- 10%#E9E9FB
- Base#E6E6FA
- 10%#CFCFE1
- 20%#B8B8C8
- 30%#A1A1AF
- 40%#8A8A96
- 50%#73737D
- 60%#5C5C64
- 70%#45454B
- 80%#2E2E32
- 90%#171719
Tones (mixed with gray)
- 10%#DCDCEE
- 20%#D2D2E2
- 30%#C7C7D5
- 40%#BDBDC9
- 50%#B3B3BD
- 60%#A9A9B1
- 70%#9F9FA5
- 80%#949498
- 90%#8A8A8C
Matching colors
Lavender in 3D color space
OKLab, the space ColorPlum does its math in: lightness runs up the pole, hue goes around it and saturation grows outward. The faint shell is every color a screen can show (saturation is drawn wider than lightness so hues separate). Drag to turn it.
- Lavender
- Triad #FAE6E6
- Triad #E6FAE6
- Complement
- 50% tint
- 50% shade
Lavender in use
Card body text stays dark for reading; lavender carries the header and the button.
Shop nowTagHeadline in Lavender
A paragraph with a link in dark text, because this color is too light for text on white; use it for fills instead.
How it looks with color-vision deficiency
A simulation (Machado and colleagues, 2009) of how the color and its complement read without one type of cone.
- Typical color vision
#E6E6FA - Protanopia (no red cones)
#E2E8FB - Deuteranopia (no green cones)
#E1E7F9 - Tritanopia (no blue cones)
#E2E9EC
Contrast and readability
| Pairing | Ratio | WCAG 2.2 |
|---|---|---|
| as text on white | 1.23:1 | AA AA large AAA |
| as text on black | 17.06:1 | AA AA large AAA |
| white text on it | 1.23:1 | AA AA large AAA |
| black text on it | 17.06:1 | AA AA large AAA |
| on your background | 1.07:1 | AA AA large AAA |
Export
:root {
--lavender: #e6e6fa;
--lavender-rgb: 230 230 250;
--lavender-on: #000000;
}On this page
Lavender is named after the lavender plant, whose flower spikes are a soft purple-gray. On the web, though, the word covers two quite different colors. The CSS named color lavender is #E6E6FA, so pale that it sits closer to white than to purple. That is the value ColorPlum uses here, and any browser will draw it when you write lavender in a stylesheet.
Reading the codes
The RGB triplet is 230, 230, 250: red and green are equal and blue is a little higher, which is why it looks faintly cool rather than purple. In HSL it is hue 240°, 67% saturation and 94% lightness, a pure blue hue washed almost to white. CMYK comes out at 8%, 8%, 0%, 2%, and the decimal form is 15132410. These are mathematical conversions, so a printer may shift them.
Here is the catch. The xkcd color survey, where people typed names for colors shown on screen, put "lavender" at #C79FEF, a clearly purple shade. The OKLab distance between the two lavenders is 18.9, a big gap. Neither is wrong: CSS froze a very light value, and survey takers pictured the flowers. If someone hands you the word without a code, ask which one they mean.
Where it works and where it doesn't
Lavender is a background color, not a text color. As text on white it measures only 1.23:1, which is nearly invisible. Turn it around and it does well as a surface: black on it is 17.06:1, and a charcoal such as #333333 gives 10.26:1. Even a medium gray like #5C5C64 clears the normal AA line at 5.38:1, while the lighter #73737D falls short at 3.81:1.
- Quiet panels: its nearest CSS neighbors are mistyrose (#FFE4E1), gainsboro (#DCDCDC) and lavenderblush (#FFF0F5), all within a distance of about 5, so it sits comfortably in a family of off-whites.
- Matching colors: the complementary color is a pale cream, #FAFAE6. The triadic partners are #FAE6E6 and #E6FAE6, so a three-way scheme is all pastels.
- Depth: the shade series runs from #CFCFE1 down to #171719 if you need a darker blue-gray from the same hue.
Worked example
Suppose you run a small yoga studio and are laying out a weekly class schedule for your website. You set the table background to lavender and the class names in indigo #4B0082. That pair measures 10.52:1, so the schedule is comfortable to read on a phone in bright light. For the lighter detail text, such as room numbers, you pick #5C5C64, which reaches 5.38:1. You also decide against putting the studio name in lavender over a white header, since 1.23:1 would make it vanish. Instead you use the lavender as the band behind the header and keep the lettering dark.
Related colors
If lavender is too faint for your design, look at Alice blue, which is similarly pale but cooler, or ghost white. For a bolder purple with the neon feel, see neon purple. To check a text and background pair of your own, use the contrast checker.