PreviewingGo to this paletteOpen in generator
Code
/* Purple Mystic — colorset.net */
:root {
--color-1: #EDE7F6;
--color-2: #D1C4E9;
--color-3: #B39DDB;
--color-4: #9575CD;
--color-5: #7E57C2;
--color-bg: #EDE7F6;
--color-surface: #F3F0F9;
--color-border: #D5CEE0;
--color-text: #534177;
--color-muted: #6A637D;
--color-primary: #7E57C2;
--color-on-primary: #FFFFFF;
--color-accent: #888290;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110C1D;
--color-surface: #1B1628;
--color-border: #30293F;
--color-text: #EDE7F6;
--color-muted: #87828F;
--color-primary: #7E57C2;
--color-on-primary: #FFFFFF;
--color-accent: #D1C4E9;
--color-on-accent: #110C1D;
}
}
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 1 | adjusted for contrast · from #7E57C2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #7E57C2 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9575CD | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.26:1 | AAA pass 4.5:1 | |
| Text on surface | 7.80:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.70:1 | AA pass 4.5:1 | |
| Label on primary | 5.21:1 | AA pass 4.5:1 | |
| Label on accent | 5.64:1 | AA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.08:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.87:1 | AAA pass 4.5:1 | |
| Text on surface | 14.57:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.14:1 | AA pass 4.5:1 | |
| Label on primary | 5.21:1 | AA pass 4.5:1 | |
| Label on accent | 11.68:1 | AAA pass 4.5:1 | |
| Primary on background | 3.68:1 | AA Large pass 3:1 | |
| Accent on background | 11.68: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 | #EDE7F6 (Text 1) | #D1C4E9 (Text 2) | #B39DDB (Text 3) | #9575CD (Text 4) | #7E57C2 (Text 5) |
|---|---|---|---|---|---|
| #EDE7F6 | Same color | 1.36— | 1.98— | 3.04AA Large | 4.31AA Large |
| #D1C4E9 | 1.36— | Same color | 1.46— | 2.24— | 3.17AA Large |
| #B39DDB | 1.98— | 1.46— | Same color | 1.54— | 2.17— |
| #9575CD | 3.04AA Large | 2.24— | 1.54— | Same color | 1.42— |
| #7E57C2 | 4.31AA Large | 3.17AA Large | 2.17— | 1.42— | Same color |
Shades
Shades and tints (50–950)
