PreviewingGo to this paletteOpen in generator
Code
/* Rich Gold — colorset.net */
:root {
--color-1: #FFD700;
--color-2: #DAA520;
--color-3: #B8860B;
--color-4: #CD853F;
--color-5: #DEB887;
--color-bg: #FBF7E8;
--color-surface: #F1EEDF;
--color-border: #DAD5C3;
--color-text: #654800;
--color-muted: #766850;
--color-primary: #B18000;
--color-on-primary: #000000;
--color-accent: #8C7500;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170E00;
--color-surface: #221805;
--color-border: #382C15;
--color-text: #E4DAB5;
--color-muted: #898267;
--color-primary: #B8860B;
--color-on-primary: #170E00;
--color-accent: #FFD700;
--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 #DEB887 | adjusted for contrast · from #B8860B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B8860B | adjusted for contrast · from #DEB887 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B8860B | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B8860B | from palette · color 1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 4.20:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.64:1 | AAA pass 4.5:1 | |
| Text on surface | 12.49:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 13.62:1 | AAA pass 4.5:1 | |
| Primary on background | 5.87:1 | AA pass 3:1 | |
| Accent on background | 13.62: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 | #FFD700 (Text 1) | #DAA520 (Text 2) | #B8860B (Text 3) | #CD853F (Text 4) | #DEB887 (Text 5) |
|---|---|---|---|---|---|
| #FFD700 | Same color | 1.60— | 2.32— | 2.13— | 1.32— |
| #DAA520 | 1.60— | Same color | 1.45— | 1.34— | 1.21— |
| #B8860B | 2.32— | 1.45— | Same color | 1.09— | 1.75— |
| #CD853F | 2.13— | 1.34— | 1.09— | Same color | 1.61— |
| #DEB887 | 1.32— | 1.21— | 1.75— | 1.61— | Same color |
Shades
Shades and tints (50–950)
