PreviewingGo to this paletteOpen in generator
Code
/* Lilac Hush — colorset.net */
:root {
--color-1: #F8F5FE;
--color-2: #A388D2;
--color-3: #93C69D;
--color-4: #D5CCE8;
--color-5: #312941;
--color-bg: #F8F5FE;
--color-surface: #EFECF5;
--color-border: #D7D2DF;
--color-text: #312941;
--color-muted: #706881;
--color-primary: #8267AE;
--color-on-primary: #FFFFFF;
--color-accent: #63946D;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100E16;
--color-surface: #1A1821;
--color-border: #2F2B38;
--color-text: #F8F5FE;
--color-muted: #8C8A92;
--color-primary: #A388D2;
--color-on-primary: #100E16;
--color-accent: #93C69D;
--color-on-accent: #100E16;
}
}
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 1 | adjusted for contrast · from #312941 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #A388D2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #93C69D | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.78:1 | AAA pass 4.5:1 | |
| Text on surface | 11.80:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 5.99:1 | AA pass 4.5:1 | |
| Primary on background | 4.33:1 | AA Large pass 3:1 | |
| Accent on background | 3.25:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.77:1 | AAA pass 4.5:1 | |
| Text on surface | 16.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.62:1 | AA pass 4.5:1 | |
| Label on primary | 6.39:1 | AA pass 4.5:1 | |
| Label on accent | 9.85:1 | AAA pass 4.5:1 | |
| Primary on background | 6.39:1 | AA pass 3:1 | |
| Accent on background | 9.85: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 | #F8F5FE (Text 1) | #A388D2 (Text 2) | #93C69D (Text 3) | #D5CCE8 (Text 4) | #312941 (Text 5) |
|---|---|---|---|---|---|
| #F8F5FE | Same color | 2.78— | 1.80— | 1.43— | 12.78AAA |
| #A388D2 | 2.78— | Same color | 1.54— | 1.94— | 4.60AA |
| #93C69D | 1.80— | 1.54— | Same color | 1.26— | 7.09AAA |
| #D5CCE8 | 1.43— | 1.94— | 1.26— | Same color | 8.94AAA |
| #312941 | 12.78AAA | 4.60AA | 7.09AAA | 8.94AAA | Same color |
Shades
Shades and tints (50–950)
