About lavender
A very pale bluish purple. This is the CSS lavender. Its hex code is #E6E6FA, which is rgb(230, 230, 250): 230 red, 230 green and 250 blue on a scale of 0 to 255.
Other values you'll see for lavender: #B57EDC (floral lavender, closer to the flower).
Lavender is a cool color.
Lavender tints and shades
Lighter tints (mixed with white) and darker shades (mixed with black) of lavender. Click any of them to copy its hex code.
Colors that go with lavender
Complementary
The opposite color on the color wheel, for strong contrast.
Analogous
Neighbors on the color wheel, for a calm, matching look.
Triadic
Three colors evenly spaced around the wheel, for a balanced, lively palette.
Split complementary
The two colors either side of the complement: contrast without clashing.
Text on lavender
White text
Black text
For readable text, WCAG asks for a contrast ratio of at least 4.5:1 (3:1 for large text). Black text is the better choice on lavender. Test other combinations with the contrast checker.
Using lavender in CSS
.element {
color: #E6E6FA;
background-color: rgb(230 230 250);
border-color: hsl(240 67% 94%);
}
Frequently asked questions
What is the hex code for lavender?
Lavender is #E6E6FA. In RGB it's rgb(230, 230, 250), and in HSL it's hsl(240, 67%, 94%).
What colors go with lavender?
Its complementary color is #FAFAE6, which gives strong contrast. For a softer look, use analogous colors #E6F0FA and #F0E6FA. Lavender also pairs well with charcoal or black.
Is lavender warm or cool?
Lavender is a cool color.
Should I use white or black text on lavender?
Use black text. Its contrast ratio on lavender is 17.06:1, versus 1.23:1 for white.
Similar colors
- Periwinkle#CCCCFFrgb(204, 204, 255)
- Royal blue#4169E1rgb(65, 105, 225)
- Blue#0000FFrgb(0, 0, 255)
- Mauve#E0B0FFrgb(224, 176, 255)
- Baby blue#89CFF0rgb(137, 207, 240)
- Violet#7F00FFrgb(127, 0, 255)
See all popular colors · All HTML color names · Open lavender in the color picker