PreviewingGo to this paletteOpen in generator
Code
/* Walnut Study — colorset.net */
:root {
--color-1: #291508;
--color-2: #AC713E;
--color-3: #76C7CC;
--color-4: #613F27;
--color-5: #F2EADD;
--color-bg: #F2EADD;
--color-surface: #F7F2EA;
--color-border: #DBD1C1;
--color-text: #291508;
--color-muted: #7D6455;
--color-primary: #A26835;
--color-on-primary: #FFFFFF;
--color-accent: #3F9197;
--color-on-accent: #291508;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #291508;
--color-surface: #352012;
--color-border: #4B3527;
--color-text: #F2EADD;
--color-muted: #928A7F;
--color-primary: #A26835;
--color-on-primary: #FFFFFF;
--color-accent: #76C7CC;
--color-on-accent: #291508;
}
}
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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #AC713E | adjusted for contrast · from #AC713E |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #AC713E | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.60:1 | AAA pass 4.5:1 | |
| Text on surface | 15.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.60:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 4.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.85:1 | AA Large pass 3:1 | |
| Accent on background | 3.08:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.60:1 | AAA pass 4.5:1 | |
| Text on surface | 12.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 4.60:1 | AA pass 4.5:1 | |
| Label on accent | 8.97:1 | AAA pass 4.5:1 | |
| Primary on background | 3.79:1 | AA Large pass 3:1 | |
| Accent on background | 8.97: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 | #291508 (Text 1) | #AC713E (Text 2) | #76C7CC (Text 3) | #613F27 (Text 4) | #F2EADD (Text 5) |
|---|---|---|---|---|---|
| #291508 | Same color | 4.30AA Large | 8.97AAA | 1.87— | 14.60AAA |
| #AC713E | 4.30AA Large | Same color | 2.08— | 2.31— | 3.39AA Large |
| #76C7CC | 8.97AAA | 2.08— | Same color | 4.81AA | 1.63— |
| #613F27 | 1.87— | 2.31— | 4.81AA | Same color | 7.82AAA |
| #F2EADD | 14.60AAA | 3.39AA Large | 1.63— | 7.82AAA | Same color |
Shades
Shades and tints (50–950)
