PreviewingGo to this paletteOpen in generator
Code
/* Sunset Cassette — colorset.net */
:root {
--color-1: #FFF1E0;
--color-2: #F28C6B;
--color-3: #C06FD0;
--color-4: #FFD6B8;
--color-5: #2E1E3B;
--color-bg: #FFF1E0;
--color-surface: #FFFAF3;
--color-border: #E8D8C4;
--color-text: #2E1E3B;
--color-muted: #766981;
--color-primary: #BD6CCD;
--color-on-primary: #2E1E3B;
--color-accent: #D37050;
--color-on-accent: #2E1E3B;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120D17;
--color-surface: #1C1721;
--color-border: #322A39;
--color-text: #FFF1E0;
--color-muted: #948778;
--color-primary: #C06FD0;
--color-on-primary: #120D17;
--color-accent: #F28C6B;
--color-on-accent: #120D17;
}
}
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 1 | adjusted for contrast · from #2E1E3B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C06FD0 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F28C6B | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.85:1 | AAA pass 4.5:1 | |
| Text on surface | 14.81:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.60:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 4.54:1 | AA pass 4.5:1 | |
| Primary on background | 3.05:1 | AA Large pass 3:1 | |
| Accent on background | 3.05:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.26:1 | AAA pass 4.5:1 | |
| Text on surface | 15.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.47:1 | AA pass 4.5:1 | |
| Label on primary | 5.86:1 | AA pass 4.5:1 | |
| Label on accent | 7.98:1 | AAA pass 4.5:1 | |
| Primary on background | 5.86:1 | AA pass 3:1 | |
| Accent on background | 7.98: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 | #FFF1E0 (Text 1) | #F28C6B (Text 2) | #C06FD0 (Text 3) | #FFD6B8 (Text 4) | #2E1E3B (Text 5) |
|---|---|---|---|---|---|
| #FFF1E0 | Same color | 2.16— | 2.94— | 1.22— | 13.85AAA |
| #F28C6B | 2.16— | Same color | 1.36— | 1.78— | 6.40AA |
| #C06FD0 | 2.94— | 1.36— | Same color | 2.42— | 4.71AA |
| #FFD6B8 | 1.22— | 1.78— | 2.42— | Same color | 11.40AAA |
| #2E1E3B | 13.85AAA | 6.40AA | 4.71AA | 11.40AAA | Same color |
Shades
Shades and tints (50–950)
