Gray Yellow

Export

Code

/* Gray Yellow — colorset.net */
:root {
  --color-1: #2F4F4F;
  --color-2: #696969;
  --color-3: #FFFF00;
  --color-4: #FFE135;
  --color-5: #FFC947;

  --color-bg: #F7F8E9;
  --color-surface: #EEEFE0;
  --color-border: #D5D7C4;
  --color-text: #2F4F4F;
  --color-muted: #507171;
  --color-primary: #797900;
  --color-on-primary: #FFFFFF;
  --color-accent: #696969;
  --color-on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #071111;
    --color-surface: #111C1C;
    --color-border: #223131;
    --color-text: #F6F8D2;
    --color-muted: #8B8C71;
    --color-primary: #FFFF00;
    --color-on-primary: #071111;
    --color-accent: #4D6E6E;
    --color-on-accent: #FFFFFF;
  }
}

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 #FFE135adjusted for contrast · from #2F4F4F
Surfacederivedderived
Borderderivedderived
Textfrom palette · color 1adjusted for contrast · from #FFE135
Muted textderivedderived
Primaryadjusted for contrast · from #696969from palette · color 3
On primaryderivedderived
Accentfrom palette · color 2adjusted for contrast · from #696969
On accentderivedderived

Contrast

Light mode
PairSampleRatioWCAG
Text on background8.32:1AAA pass 4.5:1
Text on surface7.68:1AAA pass 4.5:1
Muted text on background4.96:1AA pass 4.5:1
Label on primary4.62:1AA pass 4.5:1
Label on accent5.49:1AA pass 4.5:1
Primary on background4.30:1AA Large pass 3:1
Accent on background5.11:1AA pass 3:1
Dark mode
PairSampleRatioWCAG
Text on background17.57:1AAA pass 4.5:1
Text on surface15.97:1AAA pass 4.5:1
Muted text on background5.55:1AA pass 4.5:1
Label on primary17.82:1AAA pass 4.5:1
Label on accent5.57:1AA pass 4.5:1
Primary on background17.82:1AAA pass 3:1
Accent on background3.44:1AA Large 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#2F4F4F (Text 1)#696969 (Text 2)#FFFF00 (Text 3)#FFE135 (Text 4)#FFC947 (Text 5)
#2F4F4FSame color1.63—8.31AAA6.83AA5.82AA
#6969691.63—Same color5.11AA4.20AA Large3.58AA Large
#FFFF008.31AAA5.11AASame color1.22—1.43—
#FFE1356.83AA4.20AA Large1.22—Same color1.17—
#FFC9475.82AA3.58AA Large1.43—1.17—Same color

How to read contrast ratios (WCAG guide)

Shades

Shades and tints (50–950)

#2F4F4F#696969#FFFF00#FFE135#FFC947

Variations

About Gray Yellow

Gray Yellow brings together a dark teal, a slate, two pale yellows and a light yellow (#2F4F4F, #696969, #FFFF00, #FFE135, #FFC947) in a warm, yellow-led scheme. Dark teal #2F4F4F and light yellow #FFC947 are 110° apart, so the palette has clear hue contrast without clashing. With lightness between 40% and 97% and #FFC947 near the middle, there is enough spread for layered surfaces but not maximum text contrast. Average chroma is 0.115, medium for a palette, so the colors are clear without being loud; the most saturated color is #FFFF00. In light mode #F7F8E9 becomes the background with #2F4F4F text at 8.3:1, and #797900 takes the primary role. With #FFFF00 leading, good fits include summer promotions, children’s products and signage.

Gray Yellow color palette: #2F4F4F, #696969, #FFFF00, #FFE135, #FFC947
Share image for Gray Yellow

Gradients in similar colors