CSS color names · Purples

Lavender color: hex #e6e6fa, RGB and HSL

Lavender is the CSS keyword lavender, hex #e6e6fa, rgb(230, 230, 250), hsl(240, 67%, 94%). It is a very light, vivid blue in the purples family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
lavender
Hex
#e6e6fa
RGB
rgb(230, 230, 250)
HSL
hsl(240, 67%, 94%)
On white
1.23:1 — fails AA; use as a fill, not text
On black
17.06:1 — passes AA for body text
.example {
  color: lavender;          /* keyword */
  color: #e6e6fa;          /* hex */
  color: rgb(230, 230, 250); /* rgb */
  color: hsl(240, 67%, 94%); /* hsl */
}

What colors go with lavender

Each match keeps lavender's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside lavender as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#fafae6

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#fae6e6
#e6fae6

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#e6f0fa
#f0e6fa

Tints and shades of lavender

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as lavender — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#eaeafb
#eeeefc
#f3f3fc
#f7f7fd
#fbfbfe

Shades (darker)

#a3a3ed
#6161df
#2828c8
#1b1b85
#0d0d43

A UI color palette built from lavender

The eight semantic roles an interface actually uses, derived from lavender as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#e6e6fa
secondary
#faf0e6
accent
#f0fae6
background
#fcfcfd
surface
#f3f3f7
text
#111122
muted
#56568f
border
#dfdfec
Dark mode
primary
#e6e6fa
secondary
#faf0e6
accent
#f0fae6
background
#0e0e1b
surface
#151528
text
#f3f3f6
muted
#9494b8
border
#272749

Using lavender in an interface

Purple is the hue most SaaS products have settled on for a primary — it is distinct from the blues of links and the reds and greens of status. The slate blues and indigo make dependable primaries; the light lavenders make tinted surfaces that still read as brand. Whichever role lavender takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Lavender?
Lavender is #e6e6fa. In CSS the keyword lavender, the hex #e6e6fa, rgb(230, 230, 250) and hsl(240, 67%, 94%) all paint the same color.
What colors go with Lavender?
Its complement is #fafae6, the split-complementary pair is #faf0e6 and #f0fae6, the triadic partners are #fae6e6 and #e6fae6, and the analogous neighbors are #e6f0fa and #f0e6fa. In an interface, use Lavender for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Lavender on the color wheel?
The opposite (complementary) color is #fafae6, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Lavender for text?
Lavender as text on white has a contrast ratio of 1.23:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 17.06:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More purples

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.