PreviewingGo to this paletteOpen in generator
Code
/* Walnut Husk — colorset.net */
:root {
--color-1: #4B3621;
--color-2: #5D4E37;
--color-3: #6E5635;
--color-4: #8B7355;
--color-5: #A0826D;
--color-bg: #FFF5EE;
--color-surface: #F5EBE4;
--color-border: #DFD2C9;
--color-text: #4B3621;
--color-muted: #7A6552;
--color-primary: #8B7355;
--color-on-primary: #000000;
--color-accent: #5D4E37;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150E07;
--color-surface: #1F1811;
--color-border: #362C22;
--color-text: #C0A08B;
--color-muted: #987F6D;
--color-primary: #8B7355;
--color-on-primary: #000000;
--color-accent: #79614B;
--color-on-accent: #FFFFFF;
}
}
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 #A0826D | adjusted for contrast · from #4B3621 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #A0826D |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #6E5635 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.57:1 | AAA pass 4.5:1 | |
| Text on surface | 9.67:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.13:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 8.04:1 | AAA pass 4.5:1 | |
| Primary on background | 4.18:1 | AA Large pass 3:1 | |
| Accent on background | 7.49:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 5.79:1 | AA pass 4.5:1 | |
| Primary on background | 4.26:1 | AA Large pass 3:1 | |
| Accent on background | 3.30:1 | AA Large 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 | #4B3621 (Text 1) | #5D4E37 (Text 2) | #6E5635 (Text 3) | #8B7355 (Text 4) | #A0826D (Text 5) |
|---|---|---|---|---|---|
| #4B3621 | Same color | 1.41— | 1.65— | 2.53— | 3.20AA Large |
| #5D4E37 | 1.41— | Same color | 1.17— | 1.79— | 2.26— |
| #6E5635 | 1.65— | 1.17— | Same color | 1.54— | 1.94— |
| #8B7355 | 2.53— | 1.79— | 1.54— | Same color | 1.26— |
| #A0826D | 3.20AA Large | 2.26— | 1.94— | 1.26— | Same color |
Shades
Shades and tints (50–950)
