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.

Get startedNew

Explore 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.

Get startedNew

Explore your palette →

Roles

Five roles and their two foregrounds. Copy the exact HEX values.

RoleLightDark
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.

light mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.85:1AAArequired16.48:1AAArequired1.93:1Fail6.95:1AA
Primary9.22:1AAArequired8.52:1AAA1.00:1Fail3.59:1AA large
Accent2.56:1Fail2.36:1Fail3.59:1AA large1.00:1Fail
Primary Foreground1.00:1Fail1.08:1Fail9.22:1AAArequired2.56:1Fail
Accent Foreground17.85:1AAA16.48:1AAA1.93:1Fail6.95:1AArequired

Dark mode

Scroll the table sideways on a small screen.

dark mode: foreground rows on background columns
Foreground / BackgroundBackgroundSurfacePrimaryAccent
Text17.61:1AAArequired16.27:1AAArequired1.97:1Fail2.51:1Fail
Primary8.93:1AAArequired8.25:1AAA1.00:1Fail1.27:1Fail
Accent6.99:1AA6.46:1AA1.27:1Fail1.00:1Fail
Primary Foreground1.00:1Fail1.08:1Fail8.93:1AAArequired6.99:1AA
Accent Foreground1.00:1Fail1.08:1Fail8.93:1AAA6.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.