PreviewingGo to this paletteOpen in generator
Code
/* Desert Night — colorset.net */
:root {
--color-1: #1C1D2E;
--color-2: #E3A05B;
--color-3: #C97B84;
--color-4: #36384F;
--color-5: #F4ECE2;
--color-bg: #F4ECE2;
--color-surface: #F9F4EE;
--color-border: #DDD3C6;
--color-text: #1C1D2E;
--color-muted: #67697D;
--color-primary: #AB606A;
--color-on-primary: #FFFFFF;
--color-accent: #36384F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1D2E;
--color-surface: #27283A;
--color-border: #3B3D53;
--color-text: #F4ECE2;
--color-muted: #989187;
--color-primary: #C97B84;
--color-on-primary: #1C1D2E;
--color-accent: #6F728C;
--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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C97B84 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #C97B84 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.19:1 | AAA pass 4.5:1 | |
| Text on surface | 15.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.61:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 11.44:1 | AAA pass 4.5:1 | |
| Primary on background | 3.89:1 | AA Large pass 3:1 | |
| Accent on background | 9.78:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.19:1 | AAA pass 4.5:1 | |
| Text on surface | 12.37:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.33:1 | AA pass 4.5:1 | |
| Label on primary | 5.26:1 | AA pass 4.5:1 | |
| Label on accent | 4.71:1 | AA pass 4.5:1 | |
| Primary on background | 5.26:1 | AA pass 3:1 | |
| Accent on background | 3.53: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 | #1C1D2E (Text 1) | #E3A05B (Text 2) | #C97B84 (Text 3) | #36384F (Text 4) | #F4ECE2 (Text 5) |
|---|---|---|---|---|---|
| #1C1D2E | Same color | 7.47AAA | 5.26AA | 1.45— | 14.19AAA |
| #E3A05B | 7.47AAA | Same color | 1.42— | 5.15AA | 1.90— |
| #C97B84 | 5.26AA | 1.42— | Same color | 3.62AA Large | 2.70— |
| #36384F | 1.45— | 5.15AA | 3.62AA Large | Same color | 9.78AAA |
| #F4ECE2 | 14.19AAA | 1.90— | 2.70— | 9.78AAA | Same color |
Shades
Shades and tints (50–950)
