Skip to content

Lavender

Hex #E6E6FA, rgb(230 230 250). A white CSS named color.

Open in palette generator

Lavender color codes

Click any value to copy it.

HEX
RGB
HSL
HSV
HWB
CMYK
OKLCH
OKLab
Lab
LCH
CSS keyword

About Lavender

Lavender is a very light near-white with the hex code #E6E6FA. In RGB it is made of 230 red, 230 green and 250 blue; in HSL its hue is 240°, with 67% saturation and 94% lightness. Its perceptual lightness (OKLCH L) is 93.1%.

It is a CSS named color, so you can write "lavender" anywhere CSS accepts a color. Against white it has a contrast ratio of 1.23:1 and against black 17.06:1, so black text reads better on it and passes WCAG AA for normal text.

Tints, shades and tones

Lavender mixed step by step with white, black and middle gray (#808080).

Tints (with white)

Shades (with black)

Tones (with gray)

Lavender 50-950 scale

A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.

Colors that go with Lavender

Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.

Complementary

Analogous

Triadic

Split complementary

Tetradic

Square

Contrast and readability

WCAG 2 contrast of Lavender with white and black. The readable text color on Lavender is black.

Lavender textSmall text on white

On white1.23:1

  • AA fail
  • AA Large fail
  • AAA fail
  • UI 3:1 fail

APCA Lc 11

Lavender textSmall text on black

On black17.06:1

  • AA pass
  • AA Large pass
  • AAA pass
  • UI 3:1 pass

APCA Lc -93

Black text on Lavender (#000000)

Test any pair in the contrast checker.

Color blindness preview

How Lavender appears with each type of color vision deficiency (simulated with the Machado model).

  • Protanopia#E2E8FB
  • Deuteranopia#E1E7F9
  • Tritanopia#E2E9EC
  • Protanomaly#E3E7FB
  • Deuteranomaly#E2E7FA
  • Tritanomaly#E5E7F4
  • Achromatopsia#E8E8E8

Colors similar to Lavender

The closest named colors by perceptual difference (OKLab).

Use Lavender in CSS and Tailwind

CSS
.lavender {
  color: lavender; /* #E6E6FA */
  background-color: rgb(230 230 250);
  border-color: oklch(93.1% 0.027 285.9);
}
Tailwind CSS
/* Tailwind CSS v4: bg-lavender-500, text-lavender-700... */
@theme {
  --color-lavender-50: #F9F9FF;
  --color-lavender-100: #E6E6FA;
  --color-lavender-200: #D2D2F7;
  --color-lavender-300: #B6B3F5;
  --color-lavender-400: #9289EC;
  --color-lavender-500: #7D6EE1;
  --color-lavender-600: #6B5CC9;
  --color-lavender-700: #5548A5;
  --color-lavender-800: #443A83;
  --color-lavender-900: #37306A;
  --color-lavender-950: #150F32;
}

<!-- or the exact color, no config -->
<div class="bg-[#E6E6FA] text-[#000000]">…</div>