Export

Code

/* Walnut Grain — colorset.net */
:root {
  --color-1: #3E2723;
  --color-2: #4E342E;
  --color-3: #5D4037;
  --color-4: #6D4C41;
  --color-5: #7B5641;

  --color-bg: #FFF4EF;
  --color-surface: #F8EAE3;
  --color-border: #E2D1C8;
  --color-text: #3E2723;
  --color-muted: #806561;
  --color-primary: #7B5641;
  --color-on-primary: #FFFFFF;
  --color-accent: #4E342E;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #150D0C;
    --color-surface: #201715;
    --color-border: #372A28;
    --color-text: #C29E8B;
    --color-muted: #997E6F;
    --color-primary: #845E49;
    --color-on-primary: #FFFFFF;
    --color-accent: #B5927F;
    --color-on-accent: #150D0C;
  }
}

Color values

ColorHEXRGBHSLOKLCH
1
2
3
4
5

Roles & contrast

Original colors are kept; roles are adjusted only when needed for contrast.

RoleLight modeDark mode
Backgroundadjusted for contrast · from #7B5641adjusted for contrast · from #3E2723
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1adjusted for contrast · from #7B5641
Muted textderivedderived
Primaryfrom palette · color 5adjusted for contrast · from #7B5641
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #7B5641
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background12.79:1AAA pass 4.5:1
Text on surface11.76:1AAA pass 4.5:1
Muted text on background4.92:1AA pass 4.5:1
Label on primary6.46:1AA pass 4.5:1
Label on accent11.32:1AAA pass 4.5:1
Primary on background5.98:1AA pass 3:1
Accent on background10.48:1AAA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background7.82:1AAA pass 4.5:1
Text on surface7.16:1AAA pass 4.5:1
Muted text on background5.09:1AA pass 4.5:1
Label on primary5.71:1AA pass 4.5:1
Label on accent6.74:1AA pass 4.5:1
Primary on background3.36:1AA Large pass 3:1
Accent on background6.74:1AA 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.

Every color on every color
Background / Text#3E2723 (Text 1)#4E342E (Text 2)#5D4037 (Text 3)#6D4C41 (Text 4)#7B5641 (Text 5)
#3E2723Same color1.22—1.48—1.82—2.14—
#4E342E1.22—Same color1.22—1.49—1.75—
#5D40371.48—1.22—Same color1.22—1.44—
#6D4C411.82—1.49—1.22—Same color1.18—
#7B56412.14—1.75—1.44—1.18—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#3E2723#4E342E#5D4037#6D4C41#7B5641

Variations

About Walnut Grain

Nearly all of the color weight in Walnut Grain sits in brown, which makes it a warm palette anchored by dark brown #5D4037. With a hue spread of just 20°, it is effectively monochromatic: #3E2723, #4E342E and #5D4037 differ mostly in lightness. All five colors stay in a narrow dark band (30% to 49% lightness, #3E2723 to #7B5641), so text and background roles are adjusted for contrast. Saturation is low (mean OKLCH chroma 0.045, peaking at 0.059 in #7B5641); the colors feel soft and muted. As a UI theme it uses #7B5641 for primary actions and #4E342E as the accent; dark mode sits on #150D0C with #C29E8B text (7.8:1). With #7B5641 leading, good fits include dark-mode dashboards, gaming sites and luxury products.

Walnut Grain color palette: #3E2723, #4E342E, #5D4037, #6D4C41, #7B5641
Share image for Walnut Grain

Gradients in similar colors