Export

Code

/* Straw Hat — colorset.net */
:root {
  --color-1: #C7B377;
  --color-2: #D4C794;
  --color-3: #E1DBB1;
  --color-4: #EEEFCE;
  --color-5: #FBFCEB;

  --color-bg: #FBFCEB;
  --color-surface: #F2F3E2;
  --color-border: #D9DAC6;
  --color-text: #604E0D;
  --color-muted: #756C52;
  --color-primary: #9B884D;
  --color-on-primary: #000000;
  --color-accent: #8B8C7D;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #150F01;
    --color-surface: #1F1907;
    --color-border: #352D17;
    --color-text: #FBFCEB;
    --color-muted: #8E8E7F;
    --color-primary: #C7B377;
    --color-on-primary: #150F01;
    --color-accent: #E1DBB1;
    --color-on-accent: #150F01;
  }
}

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
Backgroundfrom palette · color 5adjusted for contrast · from #C7B377
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #C7B377from palette · color 5
Muted textderivedderived
Primaryadjusted for contrast · from #C7B377from palette · color 1
On primaryderivedderived
Accentadjusted for contrast · from #C7B377from palette · color 3
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.80:1AAA pass 4.5:1
Text on surface7.21:1AAA pass 4.5:1
Muted text on background5.03:1AA pass 4.5:1
Label on primary6.02:1AA pass 4.5:1
Label on accent6.15:1AA pass 4.5:1
Primary on background3.36:1AA Large pass 3:1
Accent on background3.29:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background18.38:1AAA pass 4.5:1
Text on surface16.85:1AAA pass 4.5:1
Muted text on background5.75:1AA pass 4.5:1
Label on primary9.22:1AAA pass 4.5:1
Label on accent13.60:1AAA pass 4.5:1
Primary on background9.22:1AAA pass 3:1
Accent on background13.60:1AAA 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#C7B377 (Text 1)#D4C794 (Text 2)#E1DBB1 (Text 3)#EEEFCE (Text 4)#FBFCEB (Text 5)
#C7B377Same color1.22—1.48—1.76—1.99—
#D4C7941.22—Same color1.21—1.44—1.63—
#E1DBB11.48—1.21—Same color1.19—1.35—
#EEEFCE1.76—1.44—1.19—Same color1.13—
#FBFCEB1.99—1.63—1.35—1.13—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#C7B377#D4C794#E1DBB1#EEEFCE#FBFCEB

Variations

About Straw Hat

About 63% of the color weight in Straw Hat sits in yellow, which makes it a warm palette anchored by cream #E1DBB1. With a hue spread of just 17°, it is effectively monochromatic: #C7B377, #D4C794 and #E1DBB1 differ mostly in lightness. All five colors stay in a narrow light band (77% to 99% lightness, #C7B377 to #FBFCEB), so text and background roles are adjusted for contrast. Saturation is low (mean OKLCH chroma 0.054, peaking at 0.082 in #C7B377); the colors feel soft and muted. Text contrast reaches 7.8:1 in light mode and 18.4:1 in dark mode, with #9B884D as primary and #8B8C7D as accent. With #C7B377 leading, good fits include editorial design, calm productivity apps and boutique brands.

Straw Hat color palette: #C7B377, #D4C794, #E1DBB1, #EEEFCE, #FBFCEB
Share image for Straw Hat

Gradients in similar colors