PreviewingGo to this paletteOpen in generator
Code
/* Indigo Violet Night — colorset.net */
:root {
--color-1: #2E1A47;
--color-2: #4B0082;
--color-3: #6A0DAD;
--color-4: #8A2BE2;
--color-5: #9F7AEA;
--color-bg: #F7F5FF;
--color-surface: #EEEBFA;
--color-border: #D6D2E4;
--color-text: #2E1A47;
--color-muted: #6F657E;
--color-primary: #8A2BE2;
--color-on-primary: #FFFFFF;
--color-accent: #4B0082;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120C1B;
--color-surface: #1C1626;
--color-border: #31293E;
--color-text: #A9A0C2;
--color-muted: #867F99;
--color-primary: #8D30E5;
--color-on-primary: #FFFFFF;
--color-accent: #715D90;
--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 #9F7AEA | adjusted for contrast · from #2E1A47 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #9F7AEA |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #8A2BE2 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #6A0DAD |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.36:1 | AAA pass 4.5:1 | |
| Text on surface | 13.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 12.95:1 | AAA pass 4.5:1 | |
| Primary on background | 5.52:1 | AA pass 3:1 | |
| Accent on background | 12.00:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.70:1 | AA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.35: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 | #2E1A47 (Text 1) | #4B0082 (Text 2) | #6A0DAD (Text 3) | #8A2BE2 (Text 4) | #9F7AEA (Text 5) |
|---|---|---|---|---|---|
| #2E1A47 | Same color | 1.20— | 1.68— | 2.60— | 4.76AA |
| #4B0082 | 1.20— | Same color | 1.40— | 2.17— | 3.98AA Large |
| #6A0DAD | 1.68— | 1.40— | Same color | 1.55— | 2.83— |
| #8A2BE2 | 2.60— | 2.17— | 1.55— | Same color | 1.83— |
| #9F7AEA | 4.76AA | 3.98AA Large | 2.83— | 1.83— | Same color |
Shades
Shades and tints (50–950)
