PreviewingGo to this paletteOpen in generator
Code
/* Lilac Fountain — colorset.net */
:root {
--color-1: #1F1535;
--color-2: #C7A3FF;
--color-3: #FFB7D5;
--color-4: #3B2D5C;
--color-5: #F3EDFF;
--color-bg: #F3EDFF;
--color-surface: #F9F6FF;
--color-border: #DBD4E9;
--color-text: #1F1535;
--color-muted: #6E6882;
--color-primary: #9B78D0;
--color-on-primary: #1F1535;
--color-accent: #B97693;
--color-on-accent: #1F1535;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1F1535;
--color-surface: #2A2041;
--color-border: #3E384F;
--color-text: #F3EDFF;
--color-muted: #918C9C;
--color-primary: #C7A3FF;
--color-on-primary: #1F1535;
--color-accent: #FFB7D5;
--color-on-accent: #1F1535;
}
}
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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C7A3FF | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C7A3FF | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.09:1 | AAA pass 4.5:1 | |
| Text on surface | 16.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 4.92:1 | AA pass 4.5:1 | |
| Label on accent | 4.99:1 | AA pass 4.5:1 | |
| Primary on background | 3.07:1 | AA Large pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.09:1 | AAA pass 4.5:1 | |
| Text on surface | 13.30:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.29:1 | AA pass 4.5:1 | |
| Label on primary | 8.31:1 | AAA pass 4.5:1 | |
| Label on accent | 10.67:1 | AAA pass 4.5:1 | |
| Primary on background | 8.31:1 | AAA pass 3:1 | |
| Accent on background | 10.67: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 | #1F1535 (Text 1) | #C7A3FF (Text 2) | #FFB7D5 (Text 3) | #3B2D5C (Text 4) | #F3EDFF (Text 5) |
|---|---|---|---|---|---|
| #1F1535 | Same color | 8.31AAA | 10.67AAA | 1.41— | 15.09AAA |
| #C7A3FF | 8.31AAA | Same color | 1.28— | 5.89AA | 1.82— |
| #FFB7D5 | 10.67AAA | 1.28— | Same color | 7.57AAA | 1.41— |
| #3B2D5C | 1.41— | 5.89AA | 7.57AAA | Same color | 10.71AAA |
| #F3EDFF | 15.09AAA | 1.82— | 1.41— | 10.71AAA | Same color |
Shades
Shades and tints (50–950)
