PreviewingGo to this paletteOpen in generator
Code
/* Lavender Purple — colorset.net */
:root {
--color-1: #8E44AD;
--color-2: #9B59B6;
--color-3: #BB8FCE;
--color-4: #D7BDE2;
--color-5: #FADBD8;
--color-bg: #FEF4F3;
--color-surface: #F4EBEA;
--color-border: #DFD1D0;
--color-text: #644173;
--color-muted: #75667D;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #9C807E;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150A1A;
--color-surface: #1F1425;
--color-border: #35283C;
--color-text: #FADBD8;
--color-muted: #987C7A;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #D7BDE2;
--color-on-accent: #150A1A;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #FADBD8 | adjusted for contrast · from #8E44AD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8E44AD | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BB8FCE | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 5.80:1 | AA pass 4.5:1 | |
| Primary on background | 5.43:1 | AA pass 3:1 | |
| Accent on background | 3.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.85:1 | AAA pass 4.5:1 | |
| Text on surface | 13.66:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 11.25:1 | AAA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 11.25:1 | AAA pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #8E44AD (Text 1) | #9B59B6 (Text 2) | #BB8FCE (Text 3) | #D7BDE2 (Text 4) | #FADBD8 (Text 5) |
|---|---|---|---|---|---|
| #8E44AD | Same color | 1.26— | 2.22— | 3.43AA Large | 4.52AA |
| #9B59B6 | 1.26— | Same color | 1.76— | 2.73— | 3.60AA Large |
| #BB8FCE | 2.22— | 1.76— | Same color | 1.55— | 2.04— |
| #D7BDE2 | 3.43AA Large | 2.73— | 1.55— | Same color | 1.32— |
| #FADBD8 | 4.52AA | 3.60AA Large | 2.04— | 1.32— | Same color |
Shades
Shades and tints (50–950)
