PreviewingGo to this paletteOpen in generator
Code
/* Lilac Sachet — colorset.net */
:root {
--color-1: #C8A2C8;
--color-2: #D4B2D8;
--color-3: #DCC3E3;
--color-4: #E8D7F1;
--color-5: #F0E6FA;
--color-bg: #F0E6FA;
--color-surface: #F5EFFB;
--color-border: #D8CDE4;
--color-text: #603F60;
--color-muted: #786377;
--color-primary: #9C789C;
--color-on-primary: #000000;
--color-accent: #664A66;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160B16;
--color-surface: #201520;
--color-border: #362837;
--color-text: #F0E6FA;
--color-muted: #8A8193;
--color-primary: #C8A2C8;
--color-on-primary: #160B16;
--color-accent: #DCC3E3;
--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.32:1 | AAA pass 4.5:1 | |
| Text on surface | 7.83:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.52:1 | AA pass 4.5:1 | |
| Label on primary | 5.58:1 | AA pass 4.5:1 | |
| Label on accent | 7.67:1 | AAA pass 4.5:1 | |
| Primary on background | 3.12:1 | AA Large pass 3:1 | |
| Accent on background | 6.36:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.92:1 | AAA pass 4.5:1 | |
| Text on surface | 14.63:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.16:1 | AA pass 4.5:1 | |
| Label on primary | 8.65:1 | AAA pass 4.5:1 | |
| Label on accent | 11.85:1 | AAA pass 4.5:1 | |
| Primary on background | 8.65:1 | AAA pass 3:1 | |
| Accent on background | 11.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 | #C8A2C8 (Text 1) | #D4B2D8 (Text 2) | #DCC3E3 (Text 3) | #E8D7F1 (Text 4) | #F0E6FA (Text 5) |
|---|---|---|---|---|---|
| #C8A2C8 | Same color | 1.18— | 1.37— | 1.63— | 1.84— |
| #D4B2D8 | 1.18— | Same color | 1.16— | 1.38— | 1.56— |
| #DCC3E3 | 1.37— | 1.16— | Same color | 1.19— | 1.34— |
| #E8D7F1 | 1.63— | 1.38— | 1.19— | Same color | 1.13— |
| #F0E6FA | 1.84— | 1.56— | 1.34— | 1.13— | Same color |
Shades
Shades and tints (50–950)
