PreviewingGo to this paletteOpen in generator
Code
/* Electric Violet — colorset.net */
:root {
--color-1: #6600FF;
--color-2: #7A1AFF;
--color-3: #8E33FF;
--color-4: #A24DFF;
--color-5: #B666FF;
--color-bg: #F9F4FF;
--color-surface: #F0EAF9;
--color-border: #D9D1E2;
--color-text: #4A467D;
--color-muted: #686881;
--color-primary: #6600FF;
--color-on-primary: #FFFFFF;
--color-accent: #9D4BE3;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #181729;
--color-border: #2C2B41;
--color-text: #AFA0C1;
--color-muted: #8A7F98;
--color-primary: #6D3AFF;
--color-on-primary: #FFFFFF;
--color-accent: #B666FF;
--color-on-accent: #0E0D1E;
}
}
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 #B666FF | adjusted for contrast · from #6600FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #6600FF | adjusted for contrast · from #B666FF |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #7A1AFF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A24DFF | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 6.98:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 6.45:1 | AA pass 3:1 | |
| Accent on background | 4.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.68:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 5.78:1 | AA 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 | #6600FF (Text 1) | #7A1AFF (Text 2) | #8E33FF (Text 3) | #A24DFF (Text 4) | #B666FF (Text 5) |
|---|---|---|---|---|---|
| #6600FF | Same color | 1.14— | 1.35— | 1.68— | 2.10— |
| #7A1AFF | 1.14— | Same color | 1.19— | 1.47— | 1.85— |
| #8E33FF | 1.35— | 1.19— | Same color | 1.24— | 1.56— |
| #A24DFF | 1.68— | 1.47— | 1.24— | Same color | 1.26— |
| #B666FF | 2.10— | 1.85— | 1.56— | 1.26— | Same color |
Shades
Shades and tints (50–950)
