PreviewingGo to this paletteOpen in generator
Code
/* Sunset Gradient — colorset.net */
:root {
--color-1: #9C27B0;
--color-2: #E91E63;
--color-3: #F44336;
--color-4: #FF9800;
--color-5: #FFEB3B;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #68406F;
--color-muted: #78657B;
--color-primary: #E51760;
--color-on-primary: #FFFFFF;
--color-accent: #827600;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160A19;
--color-surface: #211423;
--color-border: #37273A;
--color-text: #EDE9C3;
--color-muted: #878469;
--color-primary: #E51760;
--color-on-primary: #FFFFFF;
--color-accent: #FFEB3B;
--color-on-accent: #160A19;
}
}
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 | adjusted for contrast · from #FFEB3B | adjusted for contrast · from #9C27B0 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9C27B0 | adjusted for contrast · from #FFEB3B |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E91E63 | adjusted for contrast · from #E91E63 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F44336 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 4.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.61:1 | AAA pass 4.5:1 | |
| Text on surface | 14.34:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 4.54:1 | AA pass 4.5:1 | |
| Label on accent | 15.76:1 | AAA pass 4.5:1 | |
| Primary on background | 4.24:1 | AA Large pass 3:1 | |
| Accent on background | 15.76: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 | #9C27B0 (Text 1) | #E91E63 (Text 2) | #F44336 (Text 3) | #FF9800 (Text 4) | #FFEB3B (Text 5) |
|---|---|---|---|---|---|
| #9C27B0 | Same color | 1.45— | 1.71— | 2.93— | 5.16AA |
| #E91E63 | 1.45— | Same color | 1.18— | 2.02— | 3.56AA Large |
| #F44336 | 1.71— | 1.18— | Same color | 1.71— | 3.02AA Large |
| #FF9800 | 2.93— | 2.02— | 1.71— | Same color | 1.77— |
| #FFEB3B | 5.16AA | 3.56AA Large | 3.02AA Large | 1.77— | Same color |
Shades
Shades and tints (50–950)
