PreviewingGo to this paletteOpen in generator
Code
/* Straw Bale — colorset.net */
:root {
--color-1: #F5DEB3;
--color-2: #EDD5A7;
--color-3: #E5CC9B;
--color-4: #DCC38F;
--color-5: #D4BA83;
--color-bg: #FDF6E9;
--color-surface: #F4EDE0;
--color-border: #DCD4C4;
--color-text: #634C13;
--color-muted: #766A51;
--color-primary: #9E8550;
--color-on-primary: #000000;
--color-accent: #685429;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160E01;
--color-surface: #201808;
--color-border: #362C18;
--color-text: #F1DFBC;
--color-muted: #8F8168;
--color-primary: #D4BA83;
--color-on-primary: #160E01;
--color-accent: #9B865A;
--color-on-accent: #160E01;
}
}
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 #F5DEB3 | adjusted for contrast · from #D4BA83 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D4BA83 | adjusted for contrast · from #F5DEB3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D4BA83 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D4BA83 | adjusted for contrast · from #D4BA83 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.59:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 7.27:1 | AAA pass 4.5:1 | |
| Primary on background | 3.30:1 | AA Large pass 3:1 | |
| Accent on background | 6.76:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.60:1 | AAA pass 4.5:1 | |
| Text on surface | 13.40:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 10.16:1 | AAA pass 4.5:1 | |
| Label on accent | 5.42:1 | AA pass 4.5:1 | |
| Primary on background | 10.16:1 | AAA pass 3:1 | |
| Accent on background | 5.42:1 | AA 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 | #F5DEB3 (Text 1) | #EDD5A7 (Text 2) | #E5CC9B (Text 3) | #DCC38F (Text 4) | #D4BA83 (Text 5) |
|---|---|---|---|---|---|
| #F5DEB3 | Same color | 1.09— | 1.19— | 1.31— | 1.43— |
| #EDD5A7 | 1.09— | Same color | 1.09— | 1.20— | 1.32— |
| #E5CC9B | 1.19— | 1.09— | Same color | 1.10— | 1.21— |
| #DCC38F | 1.31— | 1.20— | 1.10— | Same color | 1.10— |
| #D4BA83 | 1.43— | 1.32— | 1.21— | 1.10— | Same color |
Shades
Shades and tints (50–950)
