Lavender
Lavender is a white with a faint blue tint. Hex code #E6E6FA.
Color codes
- CSS name
lavender - HEX
#E6E6FA - RGB
rgb(230 230 250) - HSL
hsl(240 67% 94%) - HSB / HSV
hsb(240, 8%, 98%) - OKLCH
oklch(93.1% 0.027 285.9) - CMYK
cmyk(8%, 8%, 0%, 2%)
White text
1.23:1 · fails WCAG
Black text
17.06:1 · passes WCAG AAA
Shades
Complementary
Analogous
Triadic
About this color
Lavender in CSS and design
Lavender is a white with a faint blue tint. Lavender is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.
Use it in CSS by name or by any of its codes; these all give the same color:
color: lavender;
color: #E6E6FA;
color: rgb(230 230 250);
color: hsl(240 67% 94%);For text on lavender, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
Frequently asked questions
What is the hex code for lavender?
#E6E6FA. In CSS you can also use the keyword lavender, which works in every browser.
What is lavender in RGB and HSL?
In RGB it is rgb(230 230 250), in HSL hsl(240 67% 94%). For print, cmyk(8%, 8%, 0%, 2%) is a starting point, but CMYK depends on paper and ink, so check with your printer.
Should I use black or white text on lavender?
Black text works better: it has a contrast ratio of 17.06:1 and passes WCAG AAA. White text reaches 1.23:1.
Which colors go with lavender?
Its complementary color is #EAEAD5, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #DDE9FB and #EFE3F5. The palette generator builds more combinations.