PreviewingGo to this paletteOpen in generator
Code
/* Desert Sunset — colorset.net */
:root {
--color-1: #FEF7CD;
--color-2: #FDE047;
--color-3: #F59E0B;
--color-4: #EA580C;
--color-5: #DC2626;
--color-bg: #F9F7EB;
--color-surface: #F0EEE2;
--color-border: #D8D5C6;
--color-text: #7C3C36;
--color-muted: #826460;
--color-primary: #DC2626;
--color-on-primary: #FFFFFF;
--color-accent: #887600;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0907;
--color-surface: #281310;
--color-border: #402623;
--color-text: #FDF7D1;
--color-muted: #908B70;
--color-primary: #DC2626;
--color-on-primary: #FFFFFF;
--color-accent: #FDE047;
--color-on-accent: #1C0907;
}
}
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 #FEF7CD | adjusted for contrast · from #DC2626 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DC2626 | adjusted for contrast · from #FEF7CD |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #EA580C | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 4.53:1 | AA pass 4.5:1 | |
| Primary on background | 4.49:1 | AA Large pass 3:1 | |
| Accent on background | 4.21:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.77:1 | AAA pass 4.5:1 | |
| Text on surface | 16.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.60:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 14.59:1 | AAA pass 4.5:1 | |
| Primary on background | 3.98:1 | AA Large pass 3:1 | |
| Accent on background | 14.59: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 | #FEF7CD (Text 1) | #FDE047 (Text 2) | #F59E0B (Text 3) | #EA580C (Text 4) | #DC2626 (Text 5) |
|---|---|---|---|---|---|
| #FEF7CD | Same color | 1.22— | 1.98— | 3.29AA Large | 4.46AA Large |
| #FDE047 | 1.22— | Same color | 1.63— | 2.70— | 3.66AA Large |
| #F59E0B | 1.98— | 1.63— | Same color | 1.66— | 2.25— |
| #EA580C | 3.29AA Large | 2.70— | 1.66— | Same color | 1.36— |
| #DC2626 | 4.46AA Large | 3.66AA Large | 2.25— | 1.36— | Same color |
Shades
Shades and tints (50–950)
