PreviewingGo to this paletteOpen in generator
Code
/* Lilac Violet — colorset.net */
:root {
--color-1: #C8A2C8;
--color-2: #D0A9D0;
--color-3: #DDA0DD;
--color-4: #EE82EE;
--color-5: #F0E0F0;
--color-bg: #FAF5FA;
--color-surface: #F0ECF0;
--color-border: #DAD2DA;
--color-text: #634263;
--color-muted: #786378;
--color-primary: #C95FC9;
--color-on-primary: #000000;
--color-accent: #908290;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160B16;
--color-surface: #201520;
--color-border: #362837;
--color-text: #F0E0F0;
--color-muted: #8B7D8B;
--color-primary: #EE82EE;
--color-on-primary: #160B16;
--color-accent: #D0A9D0;
--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 | adjusted for contrast · from #F0E0F0 | 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 #EE82EE | from palette · color 4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C8A2C8 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 3.37:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.20:1 | AAA pass 4.5:1 | |
| Text on surface | 13.98:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 8.29:1 | AAA pass 4.5:1 | |
| Label on accent | 9.39:1 | AAA pass 4.5:1 | |
| Primary on background | 8.29:1 | AAA pass 3:1 | |
| Accent on background | 9.39: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) | #D0A9D0 (Text 2) | #DDA0DD (Text 3) | #EE82EE (Text 4) | #F0E0F0 (Text 5) |
|---|---|---|---|---|---|
| #C8A2C8 | Same color | 1.09— | 1.07— | 1.04— | 1.76— |
| #D0A9D0 | 1.09— | Same color | 1.01— | 1.13— | 1.62— |
| #DDA0DD | 1.07— | 1.01— | Same color | 1.12— | 1.64— |
| #EE82EE | 1.04— | 1.13— | 1.12— | Same color | 1.83— |
| #F0E0F0 | 1.76— | 1.62— | 1.64— | 1.83— | Same color |
Shades
Shades and tints (50–950)
