Description
Lavender has a hue of 240°, saturation 67% and lightness 94%, which places it in the blue family. Its strongest channel is blue (250).
Using lavender in CSS
.title { color: lavender; }
.box { background: lavender; border-color: #e6e6fa; }
.soft { background: rgb(230 230 250 / 20%); } /* lavender at 20% opacity */Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.
Similar named colors
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| ghostwhite | #f8f8ff | 248, 248, 255 | 6.5 |
| aliceblue | #f0f8ff | 240, 248, 255 | 8.4 |
| lavenderblush | #fff0f5 | 255, 240, 245 | 8.5 |
| gainsboro | #dcdcdc | 220, 220, 220 | 9.3 |
| whitesmoke | #f5f5f5 | 245, 245, 245 | 9.4 |
| snow | #fffafa | 255, 250, 250 | 9.5 |
| lightgray | #d3d3d3 | 211, 211, 211 | 10 |
| white | #ffffff | 255, 255, 255 | 10.1 |
ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.
Pairs well with
Readability
Contrast with white text: 1.23:1; with black text: 17.06:1. Black body text on lavender meets WCAG AA; white text does not.