PreviewingGo to this paletteOpen in generator
Code
/* Violet Hour — colorset.net */
:root {
--color-1: #151024;
--color-2: #A87EEB;
--color-3: #F4B581;
--color-4: #3B3058;
--color-5: #F0ECF7;
--color-bg: #F0ECF7;
--color-surface: #F7F4FB;
--color-border: #D8D3E1;
--color-text: #151024;
--color-muted: #67627B;
--color-primary: #8A5FC9;
--color-on-primary: #FFFFFF;
--color-accent: #A26835;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #151024;
--color-surface: #1F1A2F;
--color-border: #342F46;
--color-text: #F0ECF7;
--color-muted: #8B8791;
--color-primary: #A87EEB;
--color-on-primary: #151024;
--color-accent: #F4B581;
--color-on-accent: #151024;
}
}
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 | from palette · color 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #A87EEB | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F4B581 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.95:1 | AAA pass 4.5:1 | |
| Text on surface | 17.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 4.60:1 | AA pass 4.5:1 | |
| Primary on background | 3.96:1 | AA Large pass 3:1 | |
| Accent on background | 3.95:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.95:1 | AAA pass 4.5:1 | |
| Text on surface | 14.47:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.28:1 | AA pass 4.5:1 | |
| Label on primary | 6.05:1 | AA pass 4.5:1 | |
| Label on accent | 10.41:1 | AAA pass 4.5:1 | |
| Primary on background | 6.05:1 | AA pass 3:1 | |
| Accent on background | 10.41:1 | AAA 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 | #151024 (Text 1) | #A87EEB (Text 2) | #F4B581 (Text 3) | #3B3058 (Text 4) | #F0ECF7 (Text 5) |
|---|---|---|---|---|---|
| #151024 | Same color | 6.05AA | 10.41AAA | 1.55— | 15.95AAA |
| #A87EEB | 6.05AA | Same color | 1.72— | 3.91AA Large | 2.63— |
| #F4B581 | 10.41AAA | 1.72— | Same color | 6.73AA | 1.53— |
| #3B3058 | 1.55— | 3.91AA Large | 6.73AA | Same color | 10.31AAA |
| #F0ECF7 | 15.95AAA | 2.63— | 1.53— | 10.31AAA | Same color |
Shades
Shades and tints (50–950)
