PreviewingGo to this paletteOpen in generator
Code
/* Desert Gold — colorset.net */
:root {
--color-1: #DAA520;
--color-2: #B8860B;
--color-3: #CD853F;
--color-4: #D2B48C;
--color-5: #F4A460;
--color-bg: #FFF5E9;
--color-surface: #F5ECE0;
--color-border: #DFD3C4;
--color-text: #654800;
--color-muted: #766850;
--color-primary: #B18000;
--color-on-primary: #000000;
--color-accent: #AE6316;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170E00;
--color-surface: #221805;
--color-border: #382C15;
--color-text: #CDB596;
--color-muted: #917F68;
--color-primary: #B8860B;
--color-on-primary: #170E00;
--color-accent: #F4A460;
--color-on-accent: #170E00;
}
}
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 #D2B48C | adjusted for contrast · from #B8860B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B8860B | adjusted for contrast · from #D2B48C |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B8860B | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B8860B | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 4.57:1 | AA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 4.24:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.68:1 | AAA pass 4.5:1 | |
| Text on surface | 8.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 9.39:1 | AAA pass 4.5:1 | |
| Primary on background | 5.87:1 | AA pass 3:1 | |
| Accent on background | 9.39: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 | #DAA520 (Text 1) | #B8860B (Text 2) | #CD853F (Text 3) | #D2B48C (Text 4) | #F4A460 (Text 5) |
|---|---|---|---|---|---|
| #DAA520 | Same color | 1.45— | 1.34— | 1.13— | 1.10— |
| #B8860B | 1.45— | Same color | 1.09— | 1.65— | 1.60— |
| #CD853F | 1.34— | 1.09— | Same color | 1.52— | 1.47— |
| #D2B48C | 1.13— | 1.65— | 1.52— | Same color | 1.03— |
| #F4A460 | 1.10— | 1.60— | 1.47— | 1.03— | Same color |
Shades
Shades and tints (50–950)
