PreviewingGo to this paletteOpen in generator
Code
/* Ancient Gold — colorset.net */
:root {
--color-1: #8B6914;
--color-2: #B8860B;
--color-3: #DAA520;
--color-4: #FFD700;
--color-5: #FFFF99;
--color-bg: #F8F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D6C4;
--color-text: #664B00;
--color-muted: #776A51;
--color-primary: #B18000;
--color-on-primary: #000000;
--color-accent: #7B7900;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160E00;
--color-surface: #211805;
--color-border: #372C15;
--color-text: #FAFBD5;
--color-muted: #8D8E72;
--color-primary: #B8860B;
--color-on-primary: #160E00;
--color-accent: #FFFF99;
--color-on-accent: #160E00;
}
}
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 #FFFF99 | adjusted for contrast · from #8B6914 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8B6914 | adjusted for contrast · from #FFFF99 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B8860B | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8B6914 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.62:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.96:1 | AA pass 4.5:1 | |
| Label on accent | 4.59:1 | AA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 4.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.07:1 | AAA pass 4.5:1 | |
| Text on surface | 16.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.69:1 | AA pass 4.5:1 | |
| Label on primary | 5.88:1 | AA pass 4.5:1 | |
| Label on accent | 18.25:1 | AAA pass 4.5:1 | |
| Primary on background | 5.88:1 | AA pass 3:1 | |
| Accent on background | 18.25: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 | #8B6914 (Text 1) | #B8860B (Text 2) | #DAA520 (Text 3) | #FFD700 (Text 4) | #FFFF99 (Text 5) |
|---|---|---|---|---|---|
| #8B6914 | Same color | 1.56— | 2.27— | 3.63AA Large | 4.85AA |
| #B8860B | 1.56— | Same color | 1.45— | 2.32— | 3.10AA Large |
| #DAA520 | 2.27— | 1.45— | Same color | 1.60— | 2.13— |
| #FFD700 | 3.63AA Large | 2.32— | 1.60— | Same color | 1.34— |
| #FFFF99 | 4.85AA | 3.10AA Large | 2.13— | 1.34— | Same color |
Shades
Shades and tints (50–950)
