White color · CSS named color

Lavender Color Code: #E6E6FA

Lavender (#E6E6FA) is a near-white shade with a faint blue tint shade: RGB 230, 230, 250, HSL 240°, 67%, 94%. Black text reads best on it (17.06:1 contrast).

Lavender color values

HEX #E6E6FA
RGB rgb(230, 230, 250)
HSL hsl(240, 67%, 94%)
HSV 240, 8%, 98%
HWB hwb(240 90% 2%)
CMYK 8%, 8%, 0%, 2%
Decimal 15132410
CSS keyword lavender
94%HSL lightness (very light)
67%HSL saturation (rich)
240°Hue angle (blue)
0.803Relative luminance

CMYK is a standard screen-to-print conversion. Printed results depend on inks, paper and color profiles.

What is Lavender?

Lavender is one of the named colors defined by the CSS Color specifications (keyword “lavender”), so every modern browser understands it without a hex code.

Its saturation is only 67%, so it behaves as a neutral, with 67% saturation (rich) and 94% lightness (very light). It is a cool color.

Compared with the other white colors in the Aqeeb Studio library, it is lighter than 7% of them and more saturated than 20% of them.

Its relative luminance is 0.803, which makes it a very light color. That is above the 0.179 crossover point at which black and white text have equal contrast, so black text has the advantage.

Lavender counts as a light color: its HSL lightness is 94% and its relative luminance is 0.803. Black text reads best on it (17.06:1 contrast).

Text contrast on Lavender

WCAG contrast of white and black text on Lavender
TextPreviewRatioAA normalAA largeAAA normalAAA large
White text Sample text 1.23:1 Poor Fail Fail Fail Fail
Black text Sample text 17.06:1 Excellent Pass Pass Pass Pass

Ratios use the WCAG 2 formula and are truncated, never rounded up. Test any pair with the contrast checker.

Colors that go with Lavender

Complementary color

Complementary colors sit directly opposite each other on the color wheel (180° apart). They give the strongest hue contrast, which suits calls to action and accents.

Analogous colors

Analogous colors are neighbors on the wheel, 30° either side of the base hue. They blend smoothly and are easy to combine in backgrounds, gradients and illustrations.

Triadic colors

A triadic scheme uses three hues spaced 120° apart. It is lively yet balanced, and works best when one color leads and the other two act as accents.

Split-complementary colors

Split-complementary keeps the base color and uses the two colors on either side of its complement (150° and 210°). The contrast is strong but gentler than a direct complement.

Tetradic colors

A tetradic (rectangle) scheme combines two complementary pairs at 0°, 60°, 180° and 240°. It offers variety but needs one dominant color to stay balanced.

Monochromatic variants

Monochromatic variants keep the same hue and saturation and only change lightness, which makes them dependable for UI scales and subtle layered designs.

#2222AA#2222AA
#3C3CD8#3C3CD8
#7777E4#7777E4
#B3B3F0#B3B3F0
#EEEEFC#EEEEFC

A “≈” before a name means the exact harmony color has no named match, so the link goes to the closest named color.

Tints and shades of Lavender

Lighter tints (mixed with white)

Darker shades (mixed with black)

Select any swatch to copy its HEX code. Build longer scales with the tints and shades tool.

Where to use Lavender

  • Card, highlight and section backgrounds with dark text (17.06:1 contrast with black)
  • Page backgrounds, subtle borders and table stripes
  • Highlights and light borders
  • Page and card backgrounds
  • Whitespace-heavy minimal layouts
  • Text on dark surfaces

Lavender appears in these curated palettes: Slate and Steel (Blue Color Palettes), Blue Hour (Blue Color Palettes), Cotton Candy (Pastel Color Palettes), Soft Sunrise (Pastel Color Palettes), Lilac Dream (Pastel Color Palettes), Midnight (Dark Color Palettes).

Use Lavender in CSS

:root {
  --color-lavender: #E6E6FA;
}

.element {
  color: var(--color-lavender);
  background-color: #E6E6FA;
  border: 2px solid #E6E6FA;
}

Questions about Lavender

What is the HEX code for Lavender?

Lavender is #E6E6FA.

What is the RGB value of Lavender?

The RGB value of Lavender is 230, 230, 250: 230 red, 230 green and 250 blue on a 0–255 scale, written rgb(230, 230, 250) in CSS.

What is the HSL value of Lavender?

The HSL value of Lavender is 240°, 67%, 94% (hue, saturation, lightness), written hsl(240, 67%, 94%) in CSS.

What is the CMYK value of Lavender?

A standard conversion gives about C 8%, M 8%, Y 0%, K 2%. Real print results depend on the inks, paper and color profile, so treat CMYK here as a reference value.

Is Lavender a light or dark color?

Lavender counts as a light color: its HSL lightness is 94% and its relative luminance is 0.803. Black text reads best on it (17.06:1 contrast).

How does Lavender look with white text?

White text on Lavender has a contrast ratio of 1.23:1, rated Poor. It falls below the WCAG minimum for text.

How does Lavender look with black text?

Black text on Lavender has a contrast ratio of 17.06:1, rated Excellent. It meets WCAG AA for normal text.

What colors go well with Lavender?

Ivory is its complementary color, and Alice Blue sits beside it as an analogous color. Lighter and darker variants of the same hue also work well for monochromatic palettes.

Where can Lavender be used?

It suits card, highlight and section backgrounds with dark text (17.06:1 contrast with black); page backgrounds, subtle borders and table stripes; highlights and light borders.

How do I use Lavender in CSS?

Use color: #E6E6FA; for text, background-color: #E6E6FA; for fills, or define a custom property such as --color-lavender: #E6E6FA; and reuse it with var(--color-lavender).

About this color page

CSS named color (W3C CSS Color Module). Values are calculated from the HEX code; color names are labels, not trademarks or standards unless stated. Screens render colors differently, so always check important colors on your own device. See the disclaimer.