Export

Code

/* Straw Yellow — colorset.net */
:root {
  --color-1: #E4D96F;
  --color-2: #F0E68C;
  --color-3: #F5F1B2;
  --color-4: #FAF6C8;
  --color-5: #FFFADC;

  --color-bg: #FFFADC;
  --color-surface: #F6F1D3;
  --color-border: #DDD8BA;
  --color-text: #574F00;
  --color-muted: #6F6C52;
  --color-primary: #827700;
  --color-on-primary: #FFFFFF;
  --color-accent: #8F8A6F;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121000;
    --color-surface: #1C1A06;
    --color-border: #312F16;
    --color-text: #FFFADC;
    --color-muted: #928D72;
    --color-primary: #E4D96F;
    --color-on-primary: #121000;
    --color-accent: #F5F1B2;
    --color-on-accent: #121000;
  }
}

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

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.91:1AAA pass 4.5:1
Text on surface7.31:1AAA pass 4.5:1
Muted text on background5.06:1AA pass 4.5:1
Label on primary4.58:1AA pass 4.5:1
Label on accent6.03:1AA pass 4.5:1
Primary on background4.35:1AA Large pass 3:1
Accent on background3.31:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background18.15:1AAA pass 4.5:1
Text on surface16.64:1AAA pass 4.5:1
Muted text on background5.71:1AA pass 4.5:1
Label on primary13.14:1AAA pass 4.5:1
Label on accent16.46:1AAA pass 4.5:1
Primary on background13.14:1AAA pass 3:1
Accent on background16.46: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#E4D96F (Text 1)#F0E68C (Text 2)#F5F1B2 (Text 3)#FAF6C8 (Text 4)#FFFADC (Text 5)
#E4D96FSame color1.13—1.25—1.32—1.38—
#F0E68C1.13—Same color1.10—1.16—1.22—
#F5F1B21.25—1.10—Same color1.05—1.10—
#FAF6C81.32—1.16—1.05—Same color1.05—
#FFFADC1.38—1.22—1.10—1.05—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#E4D96F#F0E68C#F5F1B2#FAF6C8#FFFADC

Variations

About Straw Yellow

Straw Yellow is a warm yellow palette of 5 colors that runs from off-white #FFFADC to light yellow #E4D96F. With a hue spread of just 5°, it is effectively monochromatic: #E4D96F, #F0E68C and #F5F1B2 differ mostly in lightness. All five colors stay in a narrow light band (87% to 98% lightness, #E4D96F to #FFFADC), so text and background roles are adjusted for contrast. Saturation is low (mean OKLCH chroma 0.084, peaking at 0.128 in #E4D96F); the colors feel soft and muted. Text contrast reaches 7.9:1 in light mode and 18.1:1 in dark mode, with #827700 as primary and #8F8A6F as accent. With #E4D96F leading, good fits include clean landing pages, reading apps and wellness apps.

Straw Yellow color palette: #E4D96F, #F0E68C, #F5F1B2, #FAF6C8, #FFFADC
Share image for Straw Yellow

Gradients in similar colors