PreviewingGo to this paletteOpen in generator
Code
/* Disco Sunrise — colorset.net */
:root {
--color-1: #FBEBD8;
--color-2: #E4572E;
--color-3: #F3A712;
--color-4: #A23B72;
--color-5: #2B1A2E;
--color-bg: #FBEBD8;
--color-surface: #FDF3E8;
--color-border: #E4D2BC;
--color-text: #2B1A2E;
--color-muted: #78657B;
--color-primary: #D2461A;
--color-on-primary: #FFFFFF;
--color-accent: #A23B72;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2B1A2E;
--color-surface: #36253A;
--color-border: #4C3B4F;
--color-text: #FBEBD8;
--color-muted: #A0917F;
--color-primary: #D2461A;
--color-on-primary: #FFFFFF;
--color-accent: #836F87;
--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 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E4572E | adjusted for contrast · from #E4572E |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #A23B72 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.94:1 | AAA pass 4.5:1 | |
| Text on surface | 14.86:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.56:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 6.17:1 | AA pass 4.5:1 | |
| Primary on background | 3.88:1 | AA Large pass 3:1 | |
| Accent on background | 5.28:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.94:1 | AAA pass 4.5:1 | |
| Text on surface | 12.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 4.58:1 | AA pass 4.5:1 | |
| Primary on background | 3.59:1 | AA Large pass 3:1 | |
| Accent on background | 3.56: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 | #FBEBD8 (Text 1) | #E4572E (Text 2) | #F3A712 (Text 3) | #A23B72 (Text 4) | #2B1A2E (Text 5) |
|---|---|---|---|---|---|
| #FBEBD8 | Same color | 3.15AA Large | 1.74— | 5.28AA | 13.94AAA |
| #E4572E | 3.15AA Large | Same color | 1.81— | 1.67— | 4.42AA Large |
| #F3A712 | 1.74— | 1.81— | Same color | 3.04AA Large | 8.02AAA |
| #A23B72 | 5.28AA | 1.67— | 3.04AA Large | Same color | 2.64— |
| #2B1A2E | 13.94AAA | 4.42AA Large | 8.02AAA | 2.64— | Same color |
Shades
Shades and tints (50–950)
