CSS named color
Lavender Color Code
Lavender is a very light, vivid blue with the hex code #E6E6FA. In RGB it is rgb(230, 230, 250), in HSL hsl(240, 67%, 94%) and in CMYK cmyk(8%, 8%, 0%, 2%).
Color values
In CSS you can write it as the keyword lavender.
White text on Lavender has a contrast ratio of 1.23:1 and black text 17.06:1, so black text is the more readable choice.
The closest Tailwind CSS color is Indigo 100 (#E0E7FF).
Use Lavender in CSS
.element {
color: lavender;
background-color: #e6e6fa;
border-color: rgb(230, 230, 250);
} Tints and shades of Lavender
Ten steps from light to dark at the same hue. Click any swatch to copy it.
Colors that go with Lavender
Color-wheel harmonies built from #E6E6FA. Click a swatch to copy it or open the set in the color wheel.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on Lavender
Colors similar to Lavender
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
Palettes with similar colors
Questions about Lavender
What is the hex code for Lavender?
The hex code for Lavender is #E6E6FA. Its RGB value is rgb(230, 230, 250) and its HSL value is hsl(240, 67%, 94%).
What colors go with Lavender?
The complementary color of Lavender is #FAFAE5. For a softer scheme try the analogous colors #E5F0FA and #F0E5FA; for a balanced three-color scheme use the triadic colors #FAE5E5 and #E5FAE5.
Is Lavender readable as a text color?
On a white background Lavender has a contrast ratio of 1.23:1, which does not pass WCAG AA for normal text (4.5:1). On black it reaches 17.06:1.