PreviewingGo to this paletteOpen in generator
Code
/* Violet Night — colorset.net */
:root {
--color-1: #330066;
--color-2: #5500AA;
--color-3: #7700EE;
--color-4: #9933FF;
--color-5: #BB66FF;
--color-bg: #F9F4FF;
--color-surface: #F1EAF8;
--color-border: #D9D1E2;
--color-text: #2D1B4E;
--color-muted: #6E6780;
--color-primary: #9933FF;
--color-on-primary: #FFFFFF;
--color-accent: #330066;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110C1D;
--color-surface: #1B1628;
--color-border: #302A40;
--color-text: #AE9EBF;
--color-muted: #8A7E97;
--color-primary: #9933FF;
--color-on-primary: #FFFFFF;
--color-accent: #7553B5;
--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 #BB66FF | adjusted for contrast · from #330066 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #330066 | adjusted for contrast · from #BB66FF |
| 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 #7700EE |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.08:1 | AAA pass 4.5:1 | |
| Text on surface | 12.96:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.92:1 | AA pass 4.5:1 | |
| Label on accent | 15.76:1 | AAA pass 4.5:1 | |
| Primary on background | 4.54:1 | AA pass 3:1 | |
| Accent on background | 14.57:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.92:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.90: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 | #330066 (Text 1) | #5500AA (Text 2) | #7700EE (Text 3) | #9933FF (Text 4) | #BB66FF (Text 5) |
|---|---|---|---|---|---|
| #330066 | Same color | 1.48— | 2.27— | 3.21AA Large | 4.85AA |
| #5500AA | 1.48— | Same color | 1.54— | 2.17— | 3.28AA Large |
| #7700EE | 2.27— | 1.54— | Same color | 1.42— | 2.14— |
| #9933FF | 3.21AA Large | 2.17— | 1.42— | Same color | 1.51— |
| #BB66FF | 4.85AA | 3.28AA Large | 2.14— | 1.51— | Same color |
Shades
Shades and tints (50–950)
