PreviewingGo to this paletteOpen in generator
Code
/* Sugar Plum Night — colorset.net */
:root {
--color-1: #1A1530;
--color-2: #7B4FA3;
--color-3: #E58FB1;
--color-4: #D8B55B;
--color-5: #F4EEF7;
--color-bg: #F4EEF7;
--color-surface: #FAF6FC;
--color-border: #DDD4E1;
--color-text: #1A1530;
--color-muted: #6A6881;
--color-primary: #7B4FA3;
--color-on-primary: #FFFFFF;
--color-accent: #A88627;
--color-on-accent: #1A1530;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A1530;
--color-surface: #24203C;
--color-border: #39364D;
--color-text: #F4EEF7;
--color-muted: #918C94;
--color-primary: #875BB0;
--color-on-primary: #FFFFFF;
--color-accent: #D8B55B;
--color-on-accent: #1A1530;
}
}
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 #7B4FA3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D8B55B | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.43:1 | AAA pass 4.5:1 | |
| Text on surface | 16.46:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.71:1 | AA pass 4.5:1 | |
| Label on primary | 6.02:1 | AA pass 4.5:1 | |
| Label on accent | 5.11:1 | AA pass 4.5:1 | |
| Primary on background | 5.28:1 | AA pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.43:1 | AAA pass 4.5:1 | |
| Text on surface | 13.68:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.35:1 | AA pass 4.5:1 | |
| Label on primary | 5.06:1 | AA pass 4.5:1 | |
| Label on accent | 8.95:1 | AAA pass 4.5:1 | |
| Primary on background | 3.48:1 | AA Large pass 3:1 | |
| Accent on background | 8.95: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 | #1A1530 (Text 1) | #7B4FA3 (Text 2) | #E58FB1 (Text 3) | #D8B55B (Text 4) | #F4EEF7 (Text 5) |
|---|---|---|---|---|---|
| #1A1530 | Same color | 2.92— | 7.45AAA | 8.95AAA | 15.43AAA |
| #7B4FA3 | 2.92— | Same color | 2.55— | 3.06AA Large | 5.28AA |
| #E58FB1 | 7.45AAA | 2.55— | Same color | 1.20— | 2.07— |
| #D8B55B | 8.95AAA | 3.06AA Large | 1.20— | Same color | 1.72— |
| #F4EEF7 | 15.43AAA | 5.28AA | 2.07— | 1.72— | Same color |
Shades
Shades and tints (50–950)
