Notification
Go to Home All Tools Compare Glossary Blog Contact

Lavender Color Code: HEX, RGB, HSL and CMYK

Lavender is #e6e6fa in hex, rgb(230, 230, 250) in RGB and hsl(240, 67%, 94%) in HSL. Copy any format, check contrast and see shades and matching colours.

Client-Side (Private)
HEX #e6e6fa
RGB rgb(230, 230, 250)
HSL hsl(240, 67%, 94%)
HSV hsv(240, 8%, 98%)
CMYK cmyk(8%, 8%, 0%, 2%)
Contrast on white 1.23:1
Live Preview
#e6e6fa Lavender
e.g. lavender
Quick try:
Converted Result (ALL)

How to use lavender in CSS

Step-by-step mathematical method you can verify by hand

  1. Use the colour name: color: lavender; or background: lavender;
  2. Or use the hex code: color: #e6e6fa;
  3. Or use RGB: color: rgb(230, 230, 250); and add transparency with rgba or rgb(... / 50%).
  4. Or use HSL to adjust it: hsl(240, 67%, 94%). Raise the last number to lighten, lower it to darken.

Lavender in every format

Worked Hand Example
FormatValue
HEX#e6e6fa
RGBrgb(230, 230, 250)
HSLhsl(240, 67%, 94%)
HSVhsv(240, 8%, 98%)
CMYKcmyk(8%, 8%, 0%, 2%)
Decimal15132410
lavender = #e6e6fa.

Shades and tints of lavender

The hue and saturation of lavender stay the same and only the HSL lightness changes, so every row is the same colour family.

ShadeHEXHSL lightness
Lightest #d5d5f7 90%
Lighter #9595ea 75%
Light #5555dd 60%
Lavender #e6e6fa 94%
Dark #2222aa 40%
Darker #15156a 25%
Darkest #0a0a33 12%

Colours that go with lavender

Colour-wheel harmonies calculated by rotating the hue.

HarmonyHEXRGB
Complementary #fafae6 rgb(250, 250, 230)
Analogous (+30°) #f0e6fa rgb(240, 230, 250)
Analogous (−30°) #e6f0fa rgb(230, 240, 250)
Triadic (+120°) #fae6e6 rgb(250, 230, 230)
Triadic (+240°) #e6fae6 rgb(230, 250, 230)
Split-complementary (+150°) #faf0e6 rgb(250, 240, 230)
Split-complementary (+210°) #f0fae6 rgb(240, 250, 230)

Contrast of lavender with black and white text

WCAG 2.x contrast ratios.

Text colourRatioAA normal (4.5)AA large (3)
White 1.23:1 Fail Fail
Black 17.06:1 Pass Pass

More colour codes

Quickly jump to other conversions and color systems

Education

About this converter

01

Exact and Explained

Lavender is #e6e6fa in hex, rgb(230, 230, 250) in RGB and hsl(240, 67%, 94%) in HSL. Copy any format, check contrast and see shades and matching colours. The worked example and tables on this page are calculated from the numbers themselves, so you can check the result by hand.

02

Privacy

The conversion runs in your browser. Nothing you type is sent to a server.

Good to know

Questions, answered

Quick answers about how this tool works.

lavender is #e6e6fa in hex, rgb(230, 230, 250) in RGB and hsl(240, 67%, 94%) in HSL.

lavender is rgb(230, 230, 250). In the simple CMYK formula it is cmyk(8%, 8%, 0%, 2%) (a screen conversion, not a print profile).

Yes. You can write color: lavender; in CSS and it means exactly #e6e6fa.

Black text has a contrast ratio of 17.06:1 and white text 1.23:1 on this colour. Black is the better choice. WCAG AA needs 4.5:1 for normal text.

Was this tool helpful?

★ 5.0 • 2 user ratings

Tap a star to rate instantly

What do you need to work out next?

Search 278+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Developer Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI