PreviewingGo to this paletteOpen in generator
Code
/* Lilac Rain — colorset.net */
:root {
--color-1: #F6F3FA;
--color-2: #8C6FC2;
--color-3: #4E9E95;
--color-4: #E4DCF0;
--color-5: #252233;
--color-bg: #F6F3FA;
--color-surface: #FDFBFF;
--color-border: #DEDAE4;
--color-text: #252233;
--color-muted: #6F6B80;
--color-primary: #8366B8;
--color-on-primary: #FFFFFF;
--color-accent: #48988F;
--color-on-accent: #252233;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0E15;
--color-surface: #19181F;
--color-border: #2E2C36;
--color-text: #F6F3FA;
--color-muted: #8B898F;
--color-primary: #8366B8;
--color-on-primary: #FFFFFF;
--color-accent: #4E9E95;
--color-on-accent: #0F0E15;
}
}
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 #252233 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8C6FC2 | adjusted for contrast · from #8C6FC2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4E9E95 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.11:1 | AAA pass 4.5:1 | |
| Text on surface | 15.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.67:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 4.55:1 | AA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 3.10:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.48:1 | AAA pass 4.5:1 | |
| Text on surface | 16.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.55:1 | AA pass 4.5:1 | |
| Label on primary | 4.61:1 | AA pass 4.5:1 | |
| Label on accent | 6.08:1 | AA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 6.08:1 | AA 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 | #F6F3FA (Text 1) | #8C6FC2 (Text 2) | #4E9E95 (Text 3) | #E4DCF0 (Text 4) | #252233 (Text 5) |
|---|---|---|---|---|---|
| #F6F3FA | Same color | 3.70AA Large | 2.88— | 1.21— | 14.11AAA |
| #8C6FC2 | 3.70AA Large | Same color | 1.29— | 3.06AA Large | 3.81AA Large |
| #4E9E95 | 2.88— | 1.29— | Same color | 2.38— | 4.91AA |
| #E4DCF0 | 1.21— | 3.06AA Large | 2.38— | Same color | 11.65AAA |
| #252233 | 14.11AAA | 3.81AA Large | 4.91AA | 11.65AAA | Same color |
Shades
Shades and tints (50–950)
