PreviewingGo to this paletteOpen in generator
Code
/* Electric Purple — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #6A1B9A;
--color-3: #8E24AA;
--color-4: #AB47BC;
--color-5: #CE93D8;
--color-bg: #FDF3FF;
--color-surface: #F4E9F6;
--color-border: #DDD0DF;
--color-text: #402A5E;
--color-muted: #6F667E;
--color-primary: #AB47BC;
--color-on-primary: #FFFFFF;
--color-accent: #4B0082;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #BBA2BF;
--color-muted: #907C93;
--color-primary: #AB47BC;
--color-on-primary: #FFFFFF;
--color-accent: #8049C0;
--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 #CE93D8 | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4B0082 | adjusted for contrast · from #CE93D8 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #8E24AA |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.36:1 | AAA pass 4.5:1 | |
| Text on surface | 10.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.82:1 | AA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 4.46:1 | AA Large pass 3:1 | |
| Accent on background | 11.99:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.28:1 | AAA pass 4.5:1 | |
| Text on surface | 7.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.82:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 4.00:1 | AA Large pass 3:1 | |
| Accent on background | 3.33: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 | #4B0082 (Text 1) | #6A1B9A (Text 2) | #8E24AA (Text 3) | #AB47BC (Text 4) | #CE93D8 (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.38— | 1.84— | 2.69— | 5.42AA |
| #6A1B9A | 1.38— | Same color | 1.33— | 1.95— | 3.93AA Large |
| #8E24AA | 1.84— | 1.33— | Same color | 1.46— | 2.95— |
| #AB47BC | 2.69— | 1.95— | 1.46— | Same color | 2.02— |
| #CE93D8 | 5.42AA | 3.93AA Large | 2.95— | 2.02— | Same color |
Shades
Shades and tints (50–950)
