PreviewingGo to this paletteOpen in generator
Code
/* Goldenrod Yellow — colorset.net */
:root {
--color-1: #DAA520;
--color-2: #E2B534;
--color-3: #EAC548;
--color-4: #F2D55C;
--color-5: #FAE570;
--color-bg: #FAF7E8;
--color-surface: #F0EEDF;
--color-border: #D9D6C3;
--color-text: #644900;
--color-muted: #756850;
--color-primary: #AE8100;
--color-on-primary: #000000;
--color-accent: #8B7500;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170E00;
--color-surface: #211805;
--color-border: #372C15;
--color-text: #EBE5BF;
--color-muted: #878267;
--color-primary: #DAA520;
--color-on-primary: #170E00;
--color-accent: #FAE570;
--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 #FAE570 | adjusted for contrast · from #DAA520 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DAA520 | adjusted for contrast · from #FAE570 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #DAA520 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DAA520 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.94:1 | AA pass 4.5:1 | |
| Label on accent | 4.52:1 | AA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 4.21:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.00:1 | AAA pass 4.5:1 | |
| Text on surface | 13.77:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 8.54:1 | AAA pass 4.5:1 | |
| Label on accent | 15.02:1 | AAA pass 4.5:1 | |
| Primary on background | 8.54:1 | AAA pass 3:1 | |
| Accent on background | 15.02: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) | #E2B534 (Text 2) | #EAC548 (Text 3) | #F2D55C (Text 4) | #FAE570 (Text 5) |
|---|---|---|---|---|---|
| #DAA520 | Same color | 1.16— | 1.34— | 1.54— | 1.76— |
| #E2B534 | 1.16— | Same color | 1.15— | 1.33— | 1.52— |
| #EAC548 | 1.34— | 1.15— | Same color | 1.15— | 1.31— |
| #F2D55C | 1.54— | 1.33— | 1.15— | Same color | 1.14— |
| #FAE570 | 1.76— | 1.52— | 1.31— | 1.14— | Same color |
Shades
Shades and tints (50–950)
