100% free no uploads no sign-up

lavender color code

The hex code for lavender is #E6E6FA, which is rgb(230, 230, 250) in RGB and cmyk(8%, 8%, 0%, 2%) in CMYK. It's a very light, rich blue. It is a built-in CSS colour, so you can also write it as “lavender”.

#E6E6FAlavender
White text: 1.23:1 ✗Black text: 17.06:1 ✓ AANearest name: lavender

Move the sliders to find a lighter, darker or softer lavender; the codes update as you go.

Lavender colour codes

HEX#E6E6FA
RGBrgb(230, 230, 250)
HSLhsl(240, 67%, 94%)
HSV / HSBhsv(240, 8%, 98%)
CMYKcmyk(8%, 8%, 0%, 2%)
Decimal15132410
CSS keywordlavender

About lavender

Lavender sits at a hue of 240° on the colour wheel, with 67% saturation and 94% lightness. That makes it a cool colour: cool colours feel calm and steady and appear to recede, so they work well for large areas.

Named after the pale purple flowers of the lavender plant.

For text, black reads better on lavender. Lavender as text on a white background has a contrast ratio of 1.23:1, which fails the WCAG AA rule for body text (4.5:1) and fails the 3:1 rule for large text. On black it is 17.06:1, which passes AA for body text.

Tints and shades of lavender

Tints mix lavender with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.

#FDFDFF#FAFAFE#F8F8FE#F5F5FD#F3F3FD#F0F0FC#EEEEFC#EBEBFB#E9E9FB
lavender #E6E6FA
#CFCFE1#B8B8C8#A1A1AF#8A8A96#73737D#5C5C64#45454B#2E2E32#171719

Colours that go with lavender

Complementary — opposite on the colour wheel: maximum contrast

#E6E6FA#FAFAE6

Analogous — neighbours 30° either side: calm and natural

#E6F0FA#E6E6FA#F0E6FA

Triadic — three hues 120° apart: lively but balanced

#E6E6FA#FAE6E6#E6FAE6

Split complementary — the two neighbours of the complement: contrast with less tension

#E6E6FA#FAF0E6#F0FAE6

Tetradic — four hues 90° apart: rich, use one as the main colour

#E6E6FA#FAE6F0#FAFAE6#E6FAF0

Lavender text contrast

CombinationRatioAA normal (4.5:1)AA large (3:1)AAA (7:1)
lavender on white1.23:1failfailfail
lavender on black17.06:1passpasspass

Check lavender against any other colour in the contrast checker.

How lavender looks with colour blindness

Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.

normal #E6E6FAprotanopia #E2E9FBdeuteranopia #E1E7F9tritanopia #E2E9EC

Use lavender in code

.lavender {
  color: lavender;
  background-color: #e6e6fa;
  border-color: rgb(230, 230, 250);
}

Frequently asked questions

What is the hex code for lavender?

Lavender is #E6E6FA (lowercase #e6e6fa). It's the official value of the CSS keyword “lavender”.

What is lavender in RGB, HSL and CMYK?

RGB: rgb(230, 230, 250). HSL: hsl(240, 67%, 94%). CMYK: cmyk(8%, 8%, 0%, 2%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.

What colours go with lavender?

Its complementary colour is #FAFAE6 (close to beige), which gives the strongest contrast. For a calmer look, use the analogous colours #E6F0FA and #F0E6FA, or the triadic pair #FAE6E6 and #E6FAE6. Tints and shades of lavender itself always work together.

Is lavender a warm or cool colour?

Lavender has a hue of 240°, which makes it cool.

Should I use black or white text on lavender?

Black. Black text on lavender has a contrast ratio of 17.06:1 and white text has 1.23:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

How do I use lavender in CSS?

Write color: lavender; or color: #e6e6fa; — both give the same colour. Named colours work in every browser.

Colours similar to lavender