Export

Code

/* Flax Yellow — colorset.net */
:root {
  --color-1: #D4AF37;
  --color-2: #E2C275;
  --color-3: #EDD382;
  --color-4: #F5E6A0;
  --color-5: #FFF8DC;

  --color-bg: #FFF8DC;
  --color-surface: #F6EFD3;
  --color-border: #DDD6B9;
  --color-text: #614C00;
  --color-muted: #746B51;
  --color-primary: #907300;
  --color-on-primary: #FFFFFF;
  --color-accent: #8F896F;
  --color-on-accent: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #150F00;
    --color-surface: #1F1905;
    --color-border: #352D15;
    --color-text: #FFF8DC;
    --color-muted: #928C72;
    --color-primary: #D4AF37;
    --color-on-primary: #150F00;
    --color-accent: #F5E6A0;
    --color-on-accent: #150F00;
  }
}

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

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.75:1AAA pass 4.5:1
Text on surface7.16:1AAA pass 4.5:1
Muted text on background4.97:1AA pass 4.5:1
Label on primary4.53:1AA pass 4.5:1
Label on accent5.98:1AA pass 4.5:1
Primary on background4.25:1AA Large pass 3:1
Accent on background3.30:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background17.92:1AAA pass 4.5:1
Text on surface16.43:1AAA pass 4.5:1
Muted text on background5.65:1AA pass 4.5:1
Label on primary9.08:1AAA pass 4.5:1
Label on accent15.19:1AAA pass 4.5:1
Primary on background9.08:1AAA pass 3:1
Accent on background15.19: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#D4AF37 (Text 1)#E2C275 (Text 2)#EDD382 (Text 3)#F5E6A0 (Text 4)#FFF8DC (Text 5)
#D4AF37Same color1.22—1.43—1.67—1.97—
#E2C2751.22—Same color1.17—1.37—1.61—
#EDD3821.43—1.17—Same color1.17—1.38—
#F5E6A01.67—1.37—1.17—Same color1.18—
#FFF8DC1.97—1.61—1.38—1.18—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#D4AF37#E2C275#EDD382#F5E6A0#FFF8DC

Variations

About Flax Yellow

Flax Yellow brings together three light yellows, a pale yellow and an off-white (#D4AF37, #E2C275, #EDD382, #F5E6A0, #FFF8DC) in a warm, yellow-led scheme. All hues sit within 10° of each other, so light yellow #D4AF37 and its relatives form a cohesive monochromatic scheme. From #D4AF37 to #FFF8DC the colors share a similar light value (lightness 77%–98%), which suits fills and illustration more than body text. Average chroma is 0.095, medium for a palette, so the colors are clear without being loud; the most saturated color is #D4AF37. Text contrast reaches 7.8:1 in light mode and 17.9:1 in dark mode, with #907300 as primary and #8F896F as accent. Try it for typography-led layouts, icons and logos and lifestyle blogs, letting light yellow #D4AF37 carry the key actions.

Flax Yellow color palette: #D4AF37, #E2C275, #EDD382, #F5E6A0, #FFF8DC
Share image for Flax Yellow

Gradients in similar colors