Skip to content

Lavender Palette

CSS variables
:root {
  --color-1: #E0AAFF;
  --color-2: #C77DFF;
  --color-3: #9D4EDD;
  --color-4: #7B2CBF;
  --color-5: #5A189A;
}
Tailwind config
// tailwind.config.js
colors: {
  "lavender-1": "#E0AAFF",
  "lavender-2": "#C77DFF",
  "lavender-3": "#9D4EDD",
  "lavender-4": "#7B2CBF",
  "lavender-5": "#5A189A",
}
About this palette

The Lavender palette is a curated set of 5 colors with their HEX, RGB and ready CSS-variable and Tailwind exports. Click any swatch for that color's full breakdown — conversions, contrast and harmonies.

Readable text on each color

White and near-black measured against every swatch. AA means the pairing clears 4.5:1 for body text; Large means it only clears 3:1, so reserve it for 24px and up.

Aa
#E0AAFFNear-black10.22:1AA
Aa
#C77DFFNear-black7.02:1AA
Aa
#9D4EDDWhite4.60:1AA
Aa
#7B2CBFWhite7.11:1AA
Aa
#5A189AWhite10.33:1AA
These colours on each other

2 of the 20 combinations inside this palette clear 4.5:1 for body text. Rows are the text colour, columns the background.

text \\ background#E0AAFF#C77DFF#9D4EDD#7B2CBF#5A189A
#E0AAFF1.46Fails2.49Fails3.85Large only5.59AA
#C77DFF1.46Fails1.71Fails2.64Fails3.84Large only
#9D4EDD2.49Fails1.71Fails1.55Fails2.25Fails
#7B2CBF3.85Large only2.64Fails1.55Fails1.45Fails
#5A189A5.59AA3.84Large only2.25Fails1.45Fails
More palettes

Related

Gradients in the same range

Copied