# Lavender Color Code: #E6E6FA Hex, RGB & Palettes

The CSS lavender reference is #E6E6FA, rgb(230, 230, 250), or hsl(240, 66.67%, 94.12%). Brand shades may differ. HEX and RGB encode the same sRGB reference; HSL is rounded to two decimals. These are screen values, not a CMYK print specification.

## Tints and shades

Illustrative mixes with white or black in encoded sRGB channels, not a perceptually uniform scale.

| Shade | HEX | RGB | HSL | Black text contrast | White text contrast |
| --- | --- | --- | --- | --- | --- |
| Tint 80% | #FAFAFE | rgb(250, 250, 254) | hsl(240, 66.67%, 98.82%) | 20.17:1 | 1.04:1 |
| Tint 40% | #F0F0FC | rgb(240, 240, 252) | hsl(240, 66.67%, 96.47%) | 18.57:1 | 1.13:1 |
| Reference | #E6E6FA | rgb(230, 230, 250) | hsl(240, 66.67%, 94.12%) | 17.06:1 | 1.23:1 |
| Shade 25% | #ADADBC | rgb(173, 173, 188) | hsl(240, 10.07%, 70.78%) | 9.48:1 | 2.22:1 |
| Shade 50% | #73737D | rgb(115, 115, 125) | hsl(240, 4.17%, 47.06%) | 4.48:1 | 4.69:1 |

## Text contrast

AA ordinary text requires at least 4.5:1; large text requires at least 3:1. Large text is at least 18pt, or 14pt bold. Use unrounded ratios for decisions. Color pairs alone cannot certify accessibility; review criteria, states, context, and exceptions.

CSS lavender is very light. Adjacent white and lavender surfaces may not make a necessary control boundary visible; use an appropriate border when the boundary matters.

## How to use lavender in product design

Lavender can separate a secondary panel or a helpful note from the main canvas. Its quiet appearance works only when the text and interactive boundaries retain enough contrast.

### A UI example to try

Place optional setup guidance on a lavender panel with a dark heading and a clearly underlined help link. Keep required errors outside that optional-content treatment.

### Work through a real screen

Test lavender as a supporting surface behind a resource card or selected area. Keep body text and interactive elements on tested foreground pairs. The surface should group content without making the whole card look unavailable or reducing the distinction between normal and selected states.

### Compare nearby colors by purpose

Compare lavender with purple for action emphasis and gray for a quieter neutral alternative. If the tint is decorative, document that it does not communicate success, failure, or selection by itself.

1. Choose a foreground, surface, accent, or status role and name a semantic token after its purpose.
2. Test the actual pair, text size, interaction states, and themes.
3. Document the approved value and companion colors. Keep labels and non-color cues for states.

## CSS palette

Illustrative numeric tokens; connect tested pairs to semantic roles.

```css
:root {
  --lavender-100: #FAFAFE;
  --lavender-300: #F0F0FC;
  --lavender-500: #E6E6FA;
  --lavender-700: #ADADBC;
  --lavender-900: #73737D;
}
```

## What is the HEX code for lavender?

The CSS named color lavender is #E6E6FA. Use a documented brand token when you mean another shade.

## Is lavender accessible?

A color alone cannot pass or fail accessibility. Evaluate the pair, content size, interaction state, and meaning in the complete interface.

## Related colors

- [purple color codes](https://designproject.io/resources/colors/purple/)

- [pink color codes](https://designproject.io/resources/colors/pink/)

- [gray color codes](https://designproject.io/resources/colors/gray/)

## Sources and next steps

By The Design Project. UI examples and generated scales are illustrative.

- [MDN CSS named colors](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/named-color)
- [W3C contrast guidance](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html)
- [UI color palette guide](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Semantic color tokens](https://designproject.io/resources/guides/create-semantic-color-tokens/)
- [Color contrast checker](https://designproject.io/resources/guides/check-color-contrast/)
- [Design glossary](https://designproject.io/resources/glossary/)

Canonical: https://designproject.io/resources/colors/lavender/

## Keep learning

- [How to create a UI color palette, step by step](https://designproject.io/resources/guides/create-ui-color-palette/)
- [Product design glossary: 44 terms explained](https://designproject.io/resources/glossary/)
- [How to create semantic color tokens for UI](https://designproject.io/resources/guides/create-semantic-color-tokens/)
