PreviewingGo to this paletteOpen in generator
Code
/* Straw Hat — colorset.net */
:root {
--color-1: #C7B377;
--color-2: #D4C794;
--color-3: #E1DBB1;
--color-4: #EEEFCE;
--color-5: #FBFCEB;
--color-bg: #FBFCEB;
--color-surface: #F2F3E2;
--color-border: #D9DAC6;
--color-text: #604E0D;
--color-muted: #756C52;
--color-primary: #9B884D;
--color-on-primary: #000000;
--color-accent: #8B8C7D;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150F01;
--color-surface: #1F1907;
--color-border: #352D17;
--color-text: #FBFCEB;
--color-muted: #8E8E7F;
--color-primary: #C7B377;
--color-on-primary: #150F01;
--color-accent: #E1DBB1;
--color-on-accent: #150F01;
}
}
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 | from palette · color 5 | adjusted for contrast · from #C7B377 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C7B377 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C7B377 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C7B377 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 6.02:1 | AA pass 4.5:1 | |
| Label on accent | 6.15:1 | AA pass 4.5:1 | |
| Primary on background | 3.36:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.38:1 | AAA pass 4.5:1 | |
| Text on surface | 16.85:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.75:1 | AA pass 4.5:1 | |
| Label on primary | 9.22:1 | AAA pass 4.5:1 | |
| Label on accent | 13.60:1 | AAA pass 4.5:1 | |
| Primary on background | 9.22:1 | AAA pass 3:1 | |
| Accent on background | 13.60: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 | #C7B377 (Text 1) | #D4C794 (Text 2) | #E1DBB1 (Text 3) | #EEEFCE (Text 4) | #FBFCEB (Text 5) |
|---|---|---|---|---|---|
| #C7B377 | Same color | 1.22— | 1.48— | 1.76— | 1.99— |
| #D4C794 | 1.22— | Same color | 1.21— | 1.44— | 1.63— |
| #E1DBB1 | 1.48— | 1.21— | Same color | 1.19— | 1.35— |
| #EEEFCE | 1.76— | 1.44— | 1.19— | Same color | 1.13— |
| #FBFCEB | 1.99— | 1.63— | 1.35— | 1.13— | Same color |
Shades
Shades and tints (50–950)
