PreviewingGo to this paletteOpen in generator
Code
/* Walnut Brown — colorset.net */
:root {
--color-1: #5C4033;
--color-2: #755942;
--color-3: #8E7151;
--color-4: #A78960;
--color-5: #C0A16F;
--color-bg: #FEF6E8;
--color-surface: #F5ECDF;
--color-border: #DED3C3;
--color-text: #5C4033;
--color-muted: #806559;
--color-primary: #8E7151;
--color-on-primary: #FFFFFF;
--color-accent: #A1835A;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160D09;
--color-surface: #211713;
--color-border: #382A24;
--color-text: #B7A383;
--color-muted: #918169;
--color-primary: #8E7151;
--color-on-primary: #FFFFFF;
--color-accent: #A78960;
--color-on-accent: #160D09;
}
}
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 #C0A16F | adjusted for contrast · from #5C4033 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #C0A16F |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A78960 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.75:1 | AAA pass 4.5:1 | |
| Text on surface | 8.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 5.91:1 | AA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 3.31:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 5.83:1 | AA pass 4.5:1 | |
| Primary on background | 4.23:1 | AA Large pass 3:1 | |
| Accent on background | 5.83:1 | AA 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 | #5C4033 (Text 1) | #755942 (Text 2) | #8E7151 (Text 3) | #A78960 (Text 4) | #C0A16F (Text 5) |
|---|---|---|---|---|---|
| #5C4033 | Same color | 1.46— | 2.07— | 2.86— | 3.83AA Large |
| #755942 | 1.46— | Same color | 1.42— | 1.96— | 2.63— |
| #8E7151 | 2.07— | 1.42— | Same color | 1.38— | 1.85— |
| #A78960 | 2.86— | 1.96— | 1.38— | Same color | 1.34— |
| #C0A16F | 3.83AA Large | 2.63— | 1.85— | 1.34— | Same color |
Shades
Shades and tints (50–950)
