PreviewingGo to this paletteOpen in generator
Code
/* Walnut Writing Desk — colorset.net */
:root {
--color-1: #EEE7D9;
--color-2: #6A4225;
--color-3: #996937;
--color-4: #4075AA;
--color-5: #29190B;
--color-bg: #F9F6F2;
--color-surface: #EFEDE9;
--color-border: #D8D4CD;
--color-text: #29190B;
--color-muted: #7C6858;
--color-primary: #4075AA;
--color-on-primary: #FFFFFF;
--color-accent: #996937;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #29190B;
--color-surface: #342416;
--color-border: #4D3827;
--color-text: #EEE7D9;
--color-muted: #948D80;
--color-primary: #4075AA;
--color-on-primary: #FFFFFF;
--color-accent: #996937;
--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 #EEE7D9 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.74:1 | AAA pass 4.5:1 | |
| Text on surface | 14.51:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 4.84:1 | AA pass 4.5:1 | |
| Label on accent | 4.74:1 | AA pass 4.5:1 | |
| Primary on background | 4.49:1 | AA Large pass 3:1 | |
| Accent on background | 4.40:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.78:1 | AAA pass 4.5:1 | |
| Text on surface | 12.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.15:1 | AA pass 4.5:1 | |
| Label on primary | 4.84:1 | AA pass 4.5:1 | |
| Label on accent | 4.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.51:1 | AA Large pass 3:1 | |
| Accent on background | 3.58: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 | #EEE7D9 (Text 1) | #6A4225 (Text 2) | #996937 (Text 3) | #4075AA (Text 4) | #29190B (Text 5) |
|---|---|---|---|---|---|
| #EEE7D9 | Same color | 7.06AAA | 3.85AA Large | 3.93AA Large | 13.78AAA |
| #6A4225 | 7.06AAA | Same color | 1.83— | 1.80— | 1.95— |
| #996937 | 3.85AA Large | 1.83— | Same color | 1.02— | 3.58AA Large |
| #4075AA | 3.93AA Large | 1.80— | 1.02— | Same color | 3.51AA Large |
| #29190B | 13.78AAA | 1.95— | 3.58AA Large | 3.51AA Large | Same color |
Shades
Shades and tints (50–950)
