PreviewingGo to this paletteOpen in generator
Code
/* Witching Hour — colorset.net */
:root {
--color-1: #15101F;
--color-2: #7B3FE4;
--color-3: #F28C28;
--color-4: #2C2140;
--color-5: #EDE6F5;
--color-bg: #EDE6F5;
--color-surface: #F3EFF8;
--color-border: #D5CDDF;
--color-text: #15101F;
--color-muted: #666073;
--color-primary: #7B3FE4;
--color-on-primary: #FFFFFF;
--color-accent: #B26100;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #15101F;
--color-surface: #1F1A2A;
--color-border: #342E42;
--color-text: #EDE6F5;
--color-muted: #8A8391;
--color-primary: #7E43E8;
--color-on-primary: #FFFFFF;
--color-accent: #F28C28;
--color-on-accent: #15101F;
}
}
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 | from palette · color 2 | adjusted for contrast · from #7B3FE4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F28C28 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.31:1 | AAA pass 4.5:1 | |
| Text on surface | 16.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 5.72:1 | AA pass 4.5:1 | |
| Label on accent | 4.56:1 | AA pass 4.5:1 | |
| Primary on background | 4.69:1 | AA pass 3:1 | |
| Accent on background | 3.75:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.31:1 | AAA pass 4.5:1 | |
| Text on surface | 13.91:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 5.45:1 | AA pass 4.5:1 | |
| Label on accent | 7.60:1 | AAA pass 4.5:1 | |
| Primary on background | 3.42:1 | AA Large pass 3:1 | |
| Accent on background | 7.60: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 | #15101F (Text 1) | #7B3FE4 (Text 2) | #F28C28 (Text 3) | #2C2140 (Text 4) | #EDE6F5 (Text 5) |
|---|---|---|---|---|---|
| #15101F | Same color | 3.26AA Large | 7.60AAA | 1.24— | 15.31AAA |
| #7B3FE4 | 3.26AA Large | Same color | 2.33— | 2.63— | 4.69AA |
| #F28C28 | 7.60AAA | 2.33— | Same color | 6.12AA | 2.01— |
| #2C2140 | 1.24— | 2.63— | 6.12AA | Same color | 12.32AAA |
| #EDE6F5 | 15.31AAA | 4.69AA | 2.01— | 12.32AAA | Same color |
Shades
Shades and tints (50–950)
