Free Accessible CSS Gradient Generator

← All Colors
#E6E6FA Lavender

Lavender Hex Code #E6E6FA

Lavender is a very light, muted purple with the hex code #E6E6FA. In RGB it is 230, 230, 250, and in HSL it is 240°, 67%, 94%. It is one of the 148 named colors in CSS, so you can write “lavender” instead of the hex code.

HEX
#E6E6FA
RGB
rgb(230, 230, 250)
HSL
hsl(240, 67%, 94%)
HSV
hsv(240°, 8%, 98%)
CMYK
cmyk(8%, 8%, 0%, 2%)
CSS name
lavender

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Lavender

On a white background Lavender has a contrast ratio of 1.23:1 (Fail), and on black 17.06:1 (AAA). Black text is the better choice on top of it.

It sits on the cool side of the color wheel, a range that tends to feel calm and appears to recede.

Purple combines the calm of blue with the energy of red. It reads as creative and premium, and is often used by design, media and beauty brands.

Good to know: Lavender (#e6e6fa) is named after the flower, but it is very pale, closer to white than to the deeper purples. For deeper tones, see thistle (#d8bfd8) and plum (#dda0dd).

Shades and tints of Lavender

Tints mix Lavender with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Lavender

These schemes are calculated from Lavender on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Lavender is #FAF3E6, close to the named color Old Lace.

Lavender contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Lavender scores against white and black.

Contrast of Lavender with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 1.23:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 17.06:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Lavender1.23:1
Aa Black text on Lavender17.06:1

Lavender and color blindness

These are approximate previews of how Lavender can look with the main types of color vision deficiency.

Protanopia #E2E8FB

Lavender looks almost the same.

Deuteranopia #E1E7F9

Lavender looks almost the same.

Tritanopia #E2E9EC

Lavender shifts slightly.

Achromatopsia #E8E8E8

Lavender shifts slightly.

Gradients with Lavender

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Lavender to a lighter tint

background: linear-gradient(135deg, #e6e6fa 0%, #f5f5fd 100%);

Lavender to its analogous neighbour

background: linear-gradient(135deg, #e6e6fa 0%, #f0e6fa 100%);

Lavender to its complement

background: linear-gradient(135deg, #e6e6fa 0%, #fafae6 100%);

Colors similar to Lavender

How each close match differs from Lavender.

More purple colors →

Use Lavender in code

CSS
.element {
  color: #e6e6fa;
  background-color: #e6e6fa;
  border-color: lavender;   /* lavender is a valid CSS color name */
}
CSS variable
:root {
  --color-lavender: #e6e6fa;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#e6e6fa] text-[#e6e6fa] border-[#e6e6fa]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-lavender: #e6e6fa;
}

Lavender questions

What is the hex code for Lavender?

The hex code for Lavender is #E6E6FA. In RGB that is rgb(230, 230, 250), and in HSL it is hsl(240, 67%, 94%).

What is the complementary color of Lavender?

On the RGB (screen) color wheel, the complement of Lavender is #FAFAE6, which is close to Ivory. On the artist’s RYB wheel it is #FAF3E6, close to Old Lace.

Should I use white or black text on Lavender?

Black text. It has a contrast ratio of 17.06:1 against Lavender, which is WCAG AAA. The other option scores 1.23:1.

Is Lavender accessible as a text color on white?

No. Lavender on white scores 1.23:1, which is below the WCAG minimum of 3:1 even for large text.

What are darker and lighter shades of Lavender?

Mixing Lavender with black gives #B8B8C8, #8A8A96, #5C5C64, #2E2E32 (20% to 80% black). Mixing it with white gives #EBEBFB, #F0F0FC, #F5F5FD, #FAFAFE (20% to 80% white).

More color tools