Lavender
Lavender is an off-white with a faint blue tint. Hex code #E6E6FA.
Lavender color codes
- CSS name
lavender - HEX
#E6E6FA - RGB
rgb(230, 230, 250) - HSL
hsl(240, 67%, 94%) - OKLCH
oklch(93.1% 0.027 285.9)
HSB and CMYK values
- HSB / HSV
hsb(240, 8%, 98%) - CMYK
C8 M8 Y0 K2
White text
1.23:1 · fails WCAG
Black text
17.06:1 · passes WCAG AAA
Shades of lavender
A darker shade of lavender is #B6B6C9 (200).
Colors that go with lavender
Complementary
Analogous
Triadic
The complementary color of lavender is #FAFAE6, close to cornsilk.
Click a color to copy its hex code.
Colors similar to lavender
- Misty rose#FFE4E1
A faint pink tint
- Gainsboro#DCDCDC
Slightly darker, no tint
- Lavender blush#FFF0F5
Slightly lighter, a faint pink tint
- White smoke#F5F5F5
Slightly lighter, no tint
- Alice blue#F0F8FF
Slightly lighter, fainter tint
- Linen#FAF0E6
Slightly lighter, a faint orange tint
Each compared with lavender.
About this color
Lavender in CSS and design
Lavender is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same lavender:
color: lavender;
color: #E6E6FA;
color: rgb(230, 230, 250);
color: hsl(240, 67%, 94%);What to know about lavender
Merriam-Webster defines lavender as a pale purple, but CSS lavender (#E6E6FA) is barely colored at all: an off-white with a blue tint, at a hue of 240°, the hue of pure blue. Lavender blush (#FFF0F5) is a pinker near-white. For a lavender that reads as purple, thistle (#D8BFD8) or plum (#DDA0DD) comes closer.
Frequently asked questions
What is the hex code for lavender?
#E6E6FA. In CSS you can also use the keyword lavender, which works in every browser.
What is lavender in RGB and HSL?
In RGB it is rgb(230, 230, 250) and in HSL hsl(240, 67%, 94%). In CMYK it is about C8 M8 Y0 K2, though printed colors vary with paper and ink.
Should I use black or white text on lavender?
Black text works better: it has a contrast ratio of 17.06:1 and passes WCAG AAA. White text reaches 1.23:1.
What is the complementary color of lavender?
#FAFAE6, close to cornsilk. It sits opposite lavender on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with lavender?
For strong contrast, pair it with its complementary color #FAFAE6. For a calmer look, combine it with its analogous neighbors #E6F0FA and #F0E6FA. The palette generator builds more combinations.