PreviewingGo to this paletteOpen in generator
Code
/* Violet Lightning — colorset.net */
:root {
--color-1: #2E0854;
--color-2: #4B0082;
--color-3: #5D3FD3;
--color-4: #7F00FF;
--color-5: #9B59B6;
--color-bg: #FBF3FF;
--color-surface: #F3EAF7;
--color-border: #DBD0E0;
--color-text: #2B1547;
--color-muted: #6F6680;
--color-primary: #7F00FF;
--color-on-primary: #FFFFFF;
--color-accent: #4B0082;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120C1C;
--color-surface: #1C1627;
--color-border: #31293F;
--color-text: #B39EBD;
--color-muted: #8E7D95;
--color-primary: #8328FF;
--color-on-primary: #FFFFFF;
--color-accent: #7658A7;
--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 #9B59B6 | adjusted for contrast · from #2E0854 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #2E0854 | adjusted for contrast · from #9B59B6 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #7F00FF |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #9B59B6 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.89:1 | AAA pass 4.5:1 | |
| Text on surface | 13.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 6.28:1 | AA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 5.79:1 | AA pass 3:1 | |
| Accent on background | 11.94:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.66:1 | AA pass 4.5:1 | |
| Label on accent | 5.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.39:1 | AA Large pass 3:1 | |
| Accent on background | 3.40: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 | #2E0854 (Text 1) | #4B0082 (Text 2) | #5D3FD3 (Text 3) | #7F00FF (Text 4) | #9B59B6 (Text 5) |
|---|---|---|---|---|---|
| #2E0854 | Same color | 1.27— | 2.44— | 2.62— | 3.52AA Large |
| #4B0082 | 1.27— | Same color | 1.92— | 2.06— | 2.77— |
| #5D3FD3 | 2.44— | 1.92— | Same color | 1.07— | 1.44— |
| #7F00FF | 2.62— | 2.06— | 1.07— | Same color | 1.34— |
| #9B59B6 | 3.52AA Large | 2.77— | 1.44— | 1.34— | Same color |
Shades
Shades and tints (50–950)
