PreviewingGo to this paletteOpen in generator
Code
/* Walnut And Wheat — colorset.net */
:root {
--color-1: #F1E7D3;
--color-2: #6B4A32;
--color-3: #C9A66B;
--color-4: #8C8A6A;
--color-5: #2A1E15;
--color-bg: #F1E7D3;
--color-surface: #F5EFE3;
--color-border: #DACEB7;
--color-text: #2A1E15;
--color-muted: #736459;
--color-primary: #906F35;
--color-on-primary: #FFFFFF;
--color-accent: #6B4A32;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2A1E15;
--color-surface: #352920;
--color-border: #4E3E32;
--color-text: #F1E7D3;
--color-muted: #9B9280;
--color-primary: #C9A66B;
--color-on-primary: #2A1E15;
--color-accent: #827368;
--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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8C8A6A | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #8C8A6A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.21:1 | AAA pass 4.5:1 | |
| Text on surface | 14.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 4.66:1 | AA pass 4.5:1 | |
| Label on accent | 7.92:1 | AAA pass 4.5:1 | |
| Primary on background | 3.79:1 | AA Large pass 3:1 | |
| Accent on background | 6.46:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.21:1 | AAA pass 4.5:1 | |
| Text on surface | 11.49:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.26:1 | AA pass 4.5:1 | |
| Label on primary | 7.07:1 | AAA pass 4.5:1 | |
| Label on accent | 4.56:1 | AA pass 4.5:1 | |
| Primary on background | 7.07:1 | AAA pass 3:1 | |
| Accent on background | 3.55: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 | #F1E7D3 (Text 1) | #6B4A32 (Text 2) | #C9A66B (Text 3) | #8C8A6A (Text 4) | #2A1E15 (Text 5) |
|---|---|---|---|---|---|
| #F1E7D3 | Same color | 6.46AA | 1.87— | 2.87— | 13.21AAA |
| #6B4A32 | 6.46AA | Same color | 3.45AA Large | 2.25— | 2.05— |
| #C9A66B | 1.87— | 3.45AA Large | Same color | 1.54— | 7.07AAA |
| #8C8A6A | 2.87— | 2.25— | 1.54— | Same color | 4.60AA |
| #2A1E15 | 13.21AAA | 2.05— | 7.07AAA | 4.60AA | Same color |
Shades
Shades and tints (50–950)
