PreviewingGo to this paletteOpen in generator
Code
/* Golden Straw — colorset.net */
:root {
--color-1: #CCAA33;
--color-2: #DDBB44;
--color-3: #EECC55;
--color-4: #FFDD66;
--color-5: #FFEE77;
--color-bg: #F9F8E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #604D00;
--color-muted: #736B51;
--color-primary: #8F7400;
--color-on-primary: #FFFFFF;
--color-accent: #574500;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150F00;
--color-surface: #1F1905;
--color-border: #352D15;
--color-text: #F2EDC7;
--color-muted: #8A866B;
--color-primary: #CCAA33;
--color-on-primary: #150F00;
--color-accent: #FFEE77;
--color-on-accent: #150F00;
}
}
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 #FFEE77 | adjusted for contrast · from #CCAA33 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #CCAA33 | adjusted for contrast · from #FFEE77 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #CCAA33 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #CCAA33 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.50:1 | AA pass 4.5:1 | |
| Label on accent | 9.31:1 | AAA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 8.69:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.10:1 | AAA pass 4.5:1 | |
| Text on surface | 14.77:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.18:1 | AA pass 4.5:1 | |
| Label on primary | 8.51:1 | AAA pass 4.5:1 | |
| Label on accent | 16.13:1 | AAA pass 4.5:1 | |
| Primary on background | 8.51:1 | AAA pass 3:1 | |
| Accent on background | 16.13: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 | #CCAA33 (Text 1) | #DDBB44 (Text 2) | #EECC55 (Text 3) | #FFDD66 (Text 4) | #FFEE77 (Text 5) |
|---|---|---|---|---|---|
| #CCAA33 | Same color | 1.20— | 1.43— | 1.69— | 1.90— |
| #DDBB44 | 1.20— | Same color | 1.19— | 1.40— | 1.58— |
| #EECC55 | 1.43— | 1.19— | Same color | 1.18— | 1.32— |
| #FFDD66 | 1.69— | 1.40— | 1.18— | Same color | 1.12— |
| #FFEE77 | 1.90— | 1.58— | 1.32— | 1.12— | Same color |
Shades
Shades and tints (50–950)
