Palette Library
Walnut Desk
A muted palette for developer tools with a brown primary and a gray accent. Text reaches 17.85:1 in light mode and 17.61:1 in dark mode.
How to use it
Walnut Desk's roles on a real interface, with the ratios stored for this palette.
- Light mode: page #fdfeff, cards #f2f5f9, and text #12171c at 17.85:1; buttons #5d4037 with #fdfeff labels at 9.22:1; highlights #90a4ae with #12171c text at 6.95:1.
- Dark mode: page #080d13, cards #13171b, and text #eff4f9 at 17.61:1; buttons #cba89d with #080d13 labels at 8.93:1; highlights #8a9ea8 with #080d13 text at 6.99:1.
- Links: #5d4037 reaches 9.22:1 on the light page, and #cba89d reaches 8.93:1 on the dark page.
- The accent as text: In light mode, keep #90a4ae for fills and badges, not text: it reaches only 2.56:1 on the page.
Preview
The same palette on a small interface in light and dark.
Light mode
A place for your ideas
Start with colors that work together.
Your next project
A surface for the details that matter.
NewExplore your palette →
Dark mode
A place for your ideas
Start with colors that work together.
Your next project
A surface for the details that matter.
NewExplore your palette →
Roles
Five roles and their two foregrounds. Copy the exact HEX values.
| Role | Light | Dark |
|---|---|---|
| Background | #fdfeff | #080d13 |
| Surface | #f2f5f9 | #13171b |
| Text | #12171c | #eff4f9 |
| Primary | #5d4037 | #cba89d |
| Primary Foreground | #fdfeff | #080d13 |
| Accent | #90a4ae | #8a9ea8 |
| Accent Foreground | #12171c | #080d13 |
Contrast matrix
Five required pairs per mode, judged on the final 8-bit colors.
Light mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.85:1AAArequired | 16.48:1AAArequired | 1.93:1Fail | 6.95:1AA |
| Primary | 9.22:1AAArequired | 8.52:1AAA | 1.00:1Fail | 3.59:1AA large |
| Accent | 2.56:1Fail | 2.36:1Fail | 3.59:1AA large | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 9.22:1AAArequired | 2.56:1Fail |
| Accent Foreground | 17.85:1AAA | 16.48:1AAA | 1.93:1Fail | 6.95:1AArequired |
Dark mode
Scroll the table sideways on a small screen.
| Foreground / Background | Background | Surface | Primary | Accent |
|---|---|---|---|---|
| Text | 17.61:1AAArequired | 16.27:1AAArequired | 1.97:1Fail | 2.51:1Fail |
| Primary | 8.93:1AAArequired | 8.25:1AAA | 1.00:1Fail | 1.27:1Fail |
| Accent | 6.99:1AA | 6.46:1AA | 1.27:1Fail | 1.00:1Fail |
| Primary Foreground | 1.00:1Fail | 1.08:1Fail | 8.93:1AAArequired | 6.99:1AA |
| Accent Foreground | 1.00:1Fail | 1.08:1Fail | 8.93:1AAA | 6.99:1AArequired |
AAA: normal text ≥ 7:1. AA: normal text ≥ 4.5:1. AA large: large text ≥ 3:1 (24 px, or 18.66 px bold). UI: required component contrast ≥ 3:1. Fail: below 3:1. Required marks the five pairs ColorLint checks in each mode. Other pairs are informational.
ColorLint checks color contrast only. Passing pairs do not mean a page is accessible.
Exports
Both modes, with the exact values the Palette Generator exports.
CSS variables
/* ColorLint palette (v1). Light values in :root; dark values in .dark. */
:root {
--background: #fdfeff;
--surface: #f2f5f9;
--text: #12171c;
--primary: #5d4037;
--primary-foreground: #fdfeff;
--accent: #90a4ae;
--accent-foreground: #12171c;
}
.dark {
--background: #080d13;
--surface: #13171b;
--text: #eff4f9;
--primary: #cba89d;
--primary-foreground: #080d13;
--accent: #8a9ea8;
--accent-foreground: #080d13;
}
Tailwind v4
/* ColorLint palette for Tailwind CSS v4 (palette v1). */
/* Paste after @import "tailwindcss". Add the "dark" class to <html> for dark mode. */
@custom-variant dark (&:where(.dark, .dark *));
:root {
color-scheme: light;
--background: #fdfeff;
--surface: #f2f5f9;
--text: #12171c;
--primary: #5d4037;
--primary-foreground: #fdfeff;
--accent: #90a4ae;
--accent-foreground: #12171c;
}
.dark {
color-scheme: dark;
--background: #080d13;
--surface: #13171b;
--text: #eff4f9;
--primary: #cba89d;
--primary-foreground: #080d13;
--accent: #8a9ea8;
--accent-foreground: #080d13;
}
@theme inline {
--color-background: var(--background);
--color-surface: var(--surface);
--color-text: var(--text);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
}
Compared with similar palettes
- Compared with Graphite Console, which shares the Developer tools topic: text reaches 17.85:1 in light mode against 18.45:1, the primary is brown where Graphite Console's is gray, and the accent is gray where Graphite Console's is teal.
- Compared with Moss and Stone, which shares the muted style: text reaches 17.85:1 in light mode against 17.04:1, the primary is brown where Moss and Stone's is green, and both use a gray accent.