PreviewingGo to this paletteOpen in generator
Code
/* Purple Electric — colorset.net */
:root {
--color-1: #A569BD;
--color-2: #8E44AD;
--color-3: #7D3C98;
--color-4: #6C3483;
--color-5: #5B2C6F;
--color-bg: #FBF3FF;
--color-surface: #F3EAF7;
--color-border: #DBD0E0;
--color-text: #563465;
--color-muted: #76667D;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #6C3483;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150A1A;
--color-surface: #1F1425;
--color-border: #35283C;
--color-text: #B39EBD;
--color-muted: #8E7D95;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #995DB0;
--color-on-accent: #FFFFFF;
}
}
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 #A569BD | adjusted for contrast · from #5B2C6F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5B2C6F | adjusted for contrast · from #A569BD |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #A569BD |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.33:1 | AAA pass 4.5:1 | |
| Text on surface | 8.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 8.55:1 | AAA pass 4.5:1 | |
| Primary on background | 5.41:1 | AA pass 3:1 | |
| Accent on background | 7.88:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84: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.87:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 4.17:1 | AA Large 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 | #A569BD (Text 1) | #8E44AD (Text 2) | #7D3C98 (Text 3) | #6C3483 (Text 4) | #5B2C6F (Text 5) |
|---|---|---|---|---|---|
| #A569BD | Same color | 1.50— | 1.80— | 2.18— | 2.63— |
| #8E44AD | 1.50— | Same color | 1.20— | 1.46— | 1.76— |
| #7D3C98 | 1.80— | 1.20— | Same color | 1.21— | 1.46— |
| #6C3483 | 2.18— | 1.46— | 1.21— | Same color | 1.21— |
| #5B2C6F | 2.63— | 1.76— | 1.46— | 1.21— | Same color |
Shades
Shades and tints (50–950)
