PreviewingGo to this paletteOpen in generator
Code
/* Amethyst Lilac — colorset.net */
:root {
--color-1: #9966CC;
--color-2: #A569BD;
--color-3: #BB8FCE;
--color-4: #D2B4DE;
--color-5: #E8DAE3;
--color-bg: #FAF5F8;
--color-surface: #F0ECEF;
--color-border: #DAD2D7;
--color-text: #5B4176;
--color-muted: #70657E;
--color-primary: #905DC2;
--color-on-primary: #FFFFFF;
--color-accent: #92858E;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130B1B;
--color-surface: #1D1526;
--color-border: #33293E;
--color-text: #E8DAE3;
--color-muted: #8A7D85;
--color-primary: #905DC2;
--color-on-primary: #FFFFFF;
--color-accent: #D2B4DE;
--color-on-accent: #130B1B;
}
}
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 #E8DAE3 | adjusted for contrast · from #9966CC |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9966CC | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #9966CC | adjusted for contrast · from #9966CC |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #BB8FCE | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.91:1 | AAA pass 4.5:1 | |
| Text on surface | 7.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.27:1 | AAA pass 4.5:1 | |
| Text on surface | 13.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 10.38:1 | AAA pass 4.5:1 | |
| Primary on background | 4.15:1 | AA Large pass 3:1 | |
| Accent on background | 10.38: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 | #9966CC (Text 1) | #A569BD (Text 2) | #BB8FCE (Text 3) | #D2B4DE (Text 4) | #E8DAE3 (Text 5) |
|---|---|---|---|---|---|
| #9966CC | Same color | 1.04— | 1.55— | 2.21— | 3.04AA Large |
| #A569BD | 1.04— | Same color | 1.48— | 2.11— | 2.91— |
| #BB8FCE | 1.55— | 1.48— | Same color | 1.43— | 1.96— |
| #D2B4DE | 2.21— | 2.11— | 1.43— | Same color | 1.37— |
| #E8DAE3 | 3.04AA Large | 2.91— | 1.96— | 1.37— | Same color |
Shades
Shades and tints (50–950)
