Export

Code

/* Citron Yellow — colorset.net */
:root {
  --color-1: #E4D00A;
  --color-2: #E9D924;
  --color-3: #EEE23E;
  --color-4: #F3EB58;
  --color-5: #F8F472;

  --color-bg: #F8F8E9;
  --color-surface: #EFEFE0;
  --color-border: #D6D6C4;
  --color-text: #595000;
  --color-muted: #6F6C52;
  --color-primary: #988A00;
  --color-on-primary: #000000;
  --color-accent: #7E7800;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121000;
    --color-surface: #1D1A06;
    --color-border: #322F16;
    --color-text: #F0F0CA;
    --color-muted: #88886C;
    --color-primary: #E4D00A;
    --color-on-primary: #121000;
    --color-accent: #F8F472;
    --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
Backgroundadjusted for contrast · from #F8F472adjusted for contrast · from #E4D00A
Surfacederivedderived
Borderderivedderived
Textadjusted for contrast · from #E4D00Aadjusted for contrast · from #F8F472
Muted textderivedderived
Primaryadjusted for contrast · from #E4D00Afrom palette · color 1
On primaryderivedderived
Accentadjusted for contrast · from #E4D00Afrom palette · color 5
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background7.62:1AAA pass 4.5:1
Text on surface7.03:1AAA pass 4.5:1
Muted text on background4.97:1AA pass 4.5:1
Label on primary5.97:1AA pass 4.5:1
Label on accent4.59:1AA pass 4.5:1
Primary on background3.28:1AA Large pass 3:1
Accent on background4.28:1AA Large pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background16.39:1AAA pass 4.5:1
Text on surface14.99:1AAA pass 4.5:1
Muted text on background5.26:1AA pass 4.5:1
Label on primary12.12:1AAA pass 4.5:1
Label on accent16.52:1AAA pass 4.5:1
Primary on background12.12:1AAA pass 3:1
Accent on background16.52: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#E4D00A (Text 1)#E9D924 (Text 2)#EEE23E (Text 3)#F3EB58 (Text 4)#F8F472 (Text 5)
#E4D00ASame color1.08—1.17—1.26—1.36—
#E9D9241.08—Same color1.08—1.17—1.26—
#EEE23E1.17—1.08—Same color1.08—1.17—
#F3EB581.26—1.17—1.08—Same color1.08—
#F8F4721.36—1.26—1.17—1.08—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#E4D00A#E9D924#EEE23E#F3EB58#F8F472

Variations

About Citron Yellow

Citron Yellow is a warm yellow palette of 5 colors that runs from pale yellow #F8F472 to light yellow #E4D00A. With a hue spread of just 5°, it is effectively monochromatic: #E4D00A, #E9D924 and #EEE23E differ mostly in lightness. All five colors stay in a narrow light band (85% to 95% lightness, #E4D00A to #F8F472), so text and background roles are adjusted for contrast. Saturation is high (mean OKLCH chroma 0.168, peaking at 0.177 in #E9D924); the colors feel saturated and energetic. Text contrast reaches 7.6:1 in light mode and 16.4:1 in dark mode, with #988A00 as primary and #7E7800 as accent. With #E4D00A leading, good fits include documentation, e-commerce product pages and clean landing pages.

Citron Yellow color palette: #E4D00A, #E9D924, #EEE23E, #F3EB58, #F8F472
Share image for Citron Yellow

Gradients in similar colors