PreviewingGo to this paletteOpen in generator
Code
/* Ultraviolet Night — colorset.net */
:root {
--color-1: #1A0033;
--color-2: #330066;
--color-3: #4D0099;
--color-4: #6600CC;
--color-5: #7F00FF;
--color-bg: #F7F5FF;
--color-surface: #EEEBFA;
--color-border: #D5D2E4;
--color-text: #190131;
--color-muted: #6B627B;
--color-primary: #7F00FF;
--color-on-primary: #FFFFFF;
--color-accent: #330066;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #A59FC1;
--color-muted: #837F99;
--color-primary: #8328FF;
--color-on-primary: #FFFFFF;
--color-accent: #725B96;
--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 #7F00FF | adjusted for contrast · from #1A0033 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1A0033 | adjusted for contrast · from #7F00FF |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #7F00FF |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #6600CC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.85:1 | AAA pass 4.5:1 | |
| Text on surface | 16.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.32:1 | AA pass 4.5:1 | |
| Label on primary | 6.28:1 | AA pass 4.5:1 | |
| Label on accent | 15.76:1 | AAA pass 4.5:1 | |
| Primary on background | 5.82:1 | AA pass 3:1 | |
| Accent on background | 14.60:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 5.66:1 | AA pass 4.5:1 | |
| Label on accent | 5.75:1 | AA pass 4.5:1 | |
| Primary on background | 3.40: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 | #1A0033 (Text 1) | #330066 (Text 2) | #4D0099 (Text 3) | #6600CC (Text 4) | #7F00FF (Text 5) |
|---|---|---|---|---|---|
| #1A0033 | Same color | 1.22— | 1.63— | 2.23— | 3.07AA Large |
| #330066 | 1.22— | Same color | 1.33— | 1.83— | 2.51— |
| #4D0099 | 1.63— | 1.33— | Same color | 1.37— | 1.88— |
| #6600CC | 2.23— | 1.83— | 1.37— | Same color | 1.37— |
| #7F00FF | 3.07AA Large | 2.51— | 1.88— | 1.37— | Same color |
Shades
Shades and tints (50–950)
