PreviewingGo to this paletteOpen in generator
Code
/* Lilac Purple — colorset.net */
:root {
--color-1: #C7C9D3;
--color-2: #B8BDD9;
--color-3: #A8B2DF;
--color-4: #9BA7E5;
--color-5: #8E9CEB;
--color-bg: #F6F6FA;
--color-surface: #EDEDF0;
--color-border: #D3D4DB;
--color-text: #434B82;
--color-muted: #656B84;
--color-primary: #6571BC;
--color-on-primary: #FFFFFF;
--color-accent: #868891;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B0E1E;
--color-surface: #15182A;
--color-border: #282C42;
--color-text: #C7C9D3;
--color-muted: #80828B;
--color-primary: #8E9CEB;
--color-on-primary: #0B0E1E;
--color-accent: #A8B2DF;
--color-on-accent: #0B0E1E;
}
}
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 #C7C9D3 | adjusted for contrast · from #8E9CEB |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8E9CEB | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8E9CEB | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8E9CEB | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.59:1 | AAA pass 4.5:1 | |
| Text on surface | 7.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.94:1 | AA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 3.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.61:1 | AAA pass 4.5:1 | |
| Text on surface | 10.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 7.40:1 | AAA pass 4.5:1 | |
| Label on accent | 9.22:1 | AAA pass 4.5:1 | |
| Primary on background | 7.40:1 | AAA pass 3:1 | |
| Accent on background | 9.22: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 | #C7C9D3 (Text 1) | #B8BDD9 (Text 2) | #A8B2DF (Text 3) | #9BA7E5 (Text 4) | #8E9CEB (Text 5) |
|---|---|---|---|---|---|
| #C7C9D3 | Same color | 1.12— | 1.26— | 1.41— | 1.57— |
| #B8BDD9 | 1.12— | Same color | 1.12— | 1.25— | 1.40— |
| #A8B2DF | 1.26— | 1.12— | Same color | 1.12— | 1.25— |
| #9BA7E5 | 1.41— | 1.25— | 1.12— | Same color | 1.12— |
| #8E9CEB | 1.57— | 1.40— | 1.25— | 1.12— | Same color |
Shades
Shades and tints (50–950)
