PreviewingGo to this paletteOpen in generator
Code
/* Lilac Soft — colorset.net */
:root {
--color-1: #C8A2C8;
--color-2: #D4B4D4;
--color-3: #E0C6E0;
--color-4: #ECD8EC;
--color-5: #F8EAF8;
--color-bg: #F8EAF8;
--color-surface: #FCF3FC;
--color-border: #E1D0E1;
--color-text: #634263;
--color-muted: #786478;
--color-primary: #A27DA2;
--color-on-primary: #000000;
--color-accent: #6C4F6C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160B16;
--color-surface: #201520;
--color-border: #362837;
--color-text: #F8EAF8;
--color-muted: #8F838F;
--color-primary: #C8A2C8;
--color-on-primary: #160B16;
--color-accent: #E0C6E0;
--color-on-accent: #160B16;
}
}
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 | from palette · color 5 | adjusted for contrast · from #C8A2C8 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C8A2C8 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C8A2C8 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C8A2C8 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.28:1 | AAA pass 4.5:1 | |
| Text on surface | 7.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.65:1 | AA pass 4.5:1 | |
| Label on primary | 5.99:1 | AA pass 4.5:1 | |
| Label on accent | 7.06:1 | AAA pass 4.5:1 | |
| Primary on background | 3.02:1 | AA Large pass 3:1 | |
| Accent on background | 6.09:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.57:1 | AAA pass 4.5:1 | |
| Text on surface | 15.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 8.65:1 | AAA pass 4.5:1 | |
| Label on accent | 12.18:1 | AAA pass 4.5:1 | |
| Primary on background | 8.65:1 | AAA pass 3:1 | |
| Accent on background | 12.18: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 | #C8A2C8 (Text 1) | #D4B4D4 (Text 2) | #E0C6E0 (Text 3) | #ECD8EC (Text 4) | #F8EAF8 (Text 5) |
|---|---|---|---|---|---|
| #C8A2C8 | Same color | 1.19— | 1.41— | 1.65— | 1.92— |
| #D4B4D4 | 1.19— | Same color | 1.18— | 1.38— | 1.61— |
| #E0C6E0 | 1.41— | 1.18— | Same color | 1.17— | 1.36— |
| #ECD8EC | 1.65— | 1.38— | 1.17— | Same color | 1.16— |
| #F8EAF8 | 1.92— | 1.61— | 1.36— | 1.16— | Same color |
Shades
Shades and tints (50–950)
