PreviewingGo to this paletteOpen in generator
Code
/* Desktop Sunset — colorset.net */
:root {
--color-1: #2E1A47;
--color-2: #FF9AA2;
--color-3: #8FE3CF;
--color-4: #4B3470;
--color-5: #FCEFF5;
--color-bg: #FCEFF5;
--color-surface: #FFF8FB;
--color-border: #E6D5DD;
--color-text: #2E1A47;
--color-muted: #736A83;
--color-primary: #CF6F78;
--color-on-primary: #2E1A47;
--color-accent: #4B3470;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120C1B;
--color-surface: #1C1626;
--color-border: #31293E;
--color-text: #FCEFF5;
--color-muted: #91868B;
--color-primary: #FF9AA2;
--color-on-primary: #120C1B;
--color-accent: #715D90;
--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 | from palette · color 5 | adjusted for contrast · from #2E1A47 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF9AA2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #4B3470 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.88:1 | AAA pass 4.5:1 | |
| Text on surface | 14.81:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.57:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 10.37:1 | AAA pass 4.5:1 | |
| Primary on background | 3.03:1 | AA Large pass 3:1 | |
| Accent on background | 9.29:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.19:1 | AAA pass 4.5:1 | |
| Text on surface | 15.77:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.47:1 | AA pass 4.5:1 | |
| Label on primary | 9.50:1 | AAA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 9.50:1 | AAA 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 | #2E1A47 (Text 1) | #FF9AA2 (Text 2) | #8FE3CF (Text 3) | #4B3470 (Text 4) | #FCEFF5 (Text 5) |
|---|---|---|---|---|---|
| #2E1A47 | Same color | 7.67AAA | 10.37AAA | 1.49— | 13.88AAA |
| #FF9AA2 | 7.67AAA | Same color | 1.35— | 5.14AA | 1.81— |
| #8FE3CF | 10.37AAA | 1.35— | Same color | 6.94AA | 1.34— |
| #4B3470 | 1.49— | 5.14AA | 6.94AA | Same color | 9.29AAA |
| #FCEFF5 | 13.88AAA | 1.81— | 1.34— | 9.29AAA | Same color |
Shades
Shades and tints (50–950)
