PreviewingGo to this paletteOpen in generator
Code
/* Violet Mystic — colorset.net */
:root {
--color-1: #7D3C98;
--color-2: #8E44AD;
--color-3: #A569BD;
--color-4: #BB8FCE;
--color-5: #D2B4DE;
--color-bg: #FCF3FF;
--color-surface: #F3EAF7;
--color-border: #DCD0E0;
--color-text: #624072;
--color-muted: #74657C;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #997DA4;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150A1A;
--color-surface: #1F1425;
--color-border: #35283C;
--color-text: #CEB7D7;
--color-muted: #8D7C94;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #BB8FCE;
--color-on-accent: #150A1A;
}
}
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 #D2B4DE | adjusted for contrast · from #7D3C98 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #7D3C98 | adjusted for contrast · from #D2B4DE |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A569BD | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.77:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 5.82:1 | AA pass 4.5:1 | |
| Primary on background | 5.42:1 | AA pass 3:1 | |
| Accent on background | 3.33:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.44:1 | AAA pass 4.5:1 | |
| Text on surface | 9.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 7.28:1 | AAA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 7.28: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 | #7D3C98 (Text 1) | #8E44AD (Text 2) | #A569BD (Text 3) | #BB8FCE (Text 4) | #D2B4DE (Text 5) |
|---|---|---|---|---|---|
| #7D3C98 | Same color | 1.20— | 1.80— | 2.67— | 3.81AA Large |
| #8E44AD | 1.20— | Same color | 1.50— | 2.22— | 3.16AA Large |
| #A569BD | 1.80— | 1.50— | Same color | 1.48— | 2.11— |
| #BB8FCE | 2.67— | 2.22— | 1.48— | Same color | 1.43— |
| #D2B4DE | 3.81AA Large | 3.16AA Large | 2.11— | 1.43— | Same color |
Shades
Shades and tints (50–950)
