PreviewingGo to this paletteOpen in generator
Code
/* Walnut Dark — colorset.net */
:root {
--color-1: #2B1C15;
--color-2: #3E2A1F;
--color-3: #513829;
--color-4: #644633;
--color-5: #77543D;
--color-bg: #FFF4EE;
--color-surface: #F7EBE3;
--color-border: #E1D1C7;
--color-text: #2B1C15;
--color-muted: #7A675F;
--color-primary: #77543D;
--color-on-primary: #FFFFFF;
--color-accent: #3E2A1F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2B1C15;
--color-surface: #372720;
--color-border: #4F3B32;
--color-text: #D4B29C;
--color-muted: #A68C7B;
--color-primary: #926E56;
--color-on-primary: #FFFFFF;
--color-accent: #C4A38D;
--color-on-accent: #2B1C15;
}
}
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 #77543D | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #77543D |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #77543D |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #77543D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.18:1 | AAA pass 4.5:1 | |
| Text on surface | 14.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 6.73:1 | AA pass 4.5:1 | |
| Label on accent | 13.50:1 | AAA pass 4.5:1 | |
| Primary on background | 6.23:1 | AA pass 3:1 | |
| Accent on background | 12.49:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.32:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.20:1 | AA pass 4.5:1 | |
| Label on primary | 4.58:1 | AA pass 4.5:1 | |
| Label on accent | 7.01:1 | AAA pass 4.5:1 | |
| Primary on background | 3.58:1 | AA Large pass 3:1 | |
| Accent on background | 7.01: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 | #2B1C15 (Text 1) | #3E2A1F (Text 2) | #513829 (Text 3) | #644633 (Text 4) | #77543D (Text 5) |
|---|---|---|---|---|---|
| #2B1C15 | Same color | 1.22— | 1.52— | 1.93— | 2.44— |
| #3E2A1F | 1.22— | Same color | 1.25— | 1.58— | 2.01— |
| #513829 | 1.52— | 1.25— | Same color | 1.27— | 1.60— |
| #644633 | 1.93— | 1.58— | 1.27— | Same color | 1.27— |
| #77543D | 2.44— | 2.01— | 1.60— | 1.27— | Same color |
Shades
Shades and tints (50–950)
