Lavender Color Code: Hex #E6E6FA
The hex code for Lavender is #E6E6FA (the CSS keyword lavender). Lavender RGB code: rgb(230, 230, 250). The xkcd color survey gives #C79FEF instead, which looks clearly different; both codes are below with their source.
#E6E6FATop: the code browsers use#B56EDCBelow: compare edge to edgeLavender color codes: each Lavender hex code in every format
Sources
Properties
- Hex codes
- 3 different ones in 3 color lists; they look clearly different
- Family
- white
- Contrast
- 1.23:1 with white, 17.06:1 with black
- CSS keyword
- lavender
- Character
- very light, near-neutral
- Readable text on it
- black (AA)
The web color lavender is the color of the central part of the lavender flower; lavender is recorded as a color term in English from 1705.
A very light, almost neutral tint. In code, lavender gives exactly this web value. If you mean the color as people usually picture the name, the survey value #C79FEF is closer: it is darker and more vivid.
Black text reads best on it; white text does not pass WCAG AA. Light versions fade to white quickly, so for backgrounds use it near full strength. Next to Ghost White, its closest named neighbour, it looks darker, more vivid and neither warmer nor cooler; beside Alice Blue it looks darker, more vivid and neither warmer nor cooler.
Colors that go with Lavender
Complementary: the opposite of Lavender
#E6E6FABlack text 17.06:1#EAEAD5Black text 17.23:1#F1F1FCBlack text 18.73:1#919184Black text 6.59:1
Analogous
#DDE9FBBlack text 17.12:1#E6E6FABlack text 17.06:1#EFE3F5Black text 16.98:1#F5F5FDBlack text 19.36:1
Triadic
#E6E6FABlack text 17.06:1#F9E3D9Black text 17.02:1#D8EEE4Black text 17.27:1#F9F9FEBlack text 20.01:1
Monochrome
#404046White text 10.30:1#8E8E9BBlack text 6.49:1#E6E6FABlack text 17.06:1#EDEDFCBlack text 18.12:1#F5F5FDBlack text 19.36:1
With neutrals
#E6E6FABlack text 17.06:1#F9F9FEBlack text 20.01:1#1D1D21White text 16.80:1#9D9DA3Black text 7.79:1
Preview
Heading on Lavender
Body text on this color, 17.06:1.
ButtonHeading in Lavender
Text in this color on white, 1.23:1.
ButtonTints and shades
#F9F9FE#F5F5FD#F1F1FC#EDEDFC#EAEAFB#E6E6FA#B9B9C9#8E8E9B#66666F#404046#1D1D21
WhiteLavenderBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “Shades of violet” (checked 2 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: