Shades of Yellow: Color Names & Hex Codes

There are 8 CSS named colors in the yellow range, from the lightest, Light Yellow, to the darkest, Goldenrod. Each one below has its exact hex and RGB code, the text color that reads best on it, and a full page with palettes and matching colors.

Yellow Color Chart

Ordered from lightest to darkest by relative luminance. Click a name for its full color page.

#FFFFE0

Light Yellow

rgb(255, 255, 224) · lightyellow

Very pale, soft yellow.

#FFFACD

Lemon Chiffon

rgb(255, 250, 205) · lemonchiffon

Pale lemon cream.

#FFFF00

Yellow

rgb(255, 255, 0) · yellow

Pure screen yellow: full red and green, no blue.

#EEE8AA

Pale Goldenrod

rgb(238, 232, 170) · palegoldenrod

Pale, soft golden yellow.

#F0E68C

Khaki

rgb(240, 230, 140) · khaki

Soft, pale yellow.

#FFD700

Gold

rgb(255, 215, 0) · gold

Bright golden yellow.

#BDB76B

Dark Khaki

rgb(189, 183, 107) · darkkhaki

Muted olive-yellow.

#DAA520

Goldenrod

rgb(218, 165, 32) · goldenrod

Rich orange-gold.

Light, Mid-tone and Dark Shades of Yellow

Light shades of yellow

Pale enough to work as backgrounds. Black text has the higher contrast on all 8 of them. Light Yellow, Lemon Chiffon, Yellow, Pale Goldenrod, Khaki, Gold, Dark Khaki and Goldenrod.

Yellow Hex Codes and Contrast

Contrast ratios follow WCAG 2.2: 4.5:1 is the minimum for body text, 3:1 for large text.

Yellow-range named colors in CSS Color 4
ColorHEXRGBHSLOn blackOn whiteBest text
#FFFFE0rgb(255, 255, 224)hsl(60, 100%, 94%)20.63:11.02:1Black
#FFFACDrgb(255, 250, 205)hsl(54, 100%, 90%)19.81:11.06:1Black
#FFFF00rgb(255, 255, 0)hsl(60, 100%, 50%)19.56:11.07:1Black
#EEE8AArgb(238, 232, 170)hsl(55, 67%, 80%)16.76:11.25:1Black
#F0E68Crgb(240, 230, 140)hsl(54, 77%, 75%)16.4:11.28:1Black
#FFD700rgb(255, 215, 0)hsl(51, 100%, 50%)14.97:11.4:1Black
#BDB76Brgb(189, 183, 107)hsl(56, 38%, 58%)10.15:12.07:1Black
#DAA520rgb(218, 165, 32)hsl(43, 74%, 49%)9.38:12.24:1Black

Shades of Yellow FAQ

What are the shades of yellow in CSS?

CSS Color 4 does not group its named colors into families, but 8 of them fall in the yellow range. From lightest to darkest: Light Yellow (#FFFFE0), Lemon Chiffon (#FFFACD), Yellow (#FFFF00), Pale Goldenrod (#EEE8AA), Khaki (#F0E68C), Gold (#FFD700), Dark Khaki (#BDB76B) and Goldenrod (#DAA520).

What is the hex code for yellow?

The CSS named color yellow is #FFFF00, which is RGB(255, 255, 0). The other shades on this page each have their own code.

Which shade of yellow can I use for text on a white background?

None of these shades reaches 4.5:1 on white; the highest is Goldenrod at 2.24:1.

Are mustard, lemon and canary yellow CSS colors?

No. Mustard, lemon and canary are common names, not CSS named colors, so none has a standard hex code. Gold (#FFD700) is close to mustard, Lemon Chiffon (#FFFACD) is a pale lemon, and Yellow (#FFFF00) is the bright pure yellow.

Sources: W3C CSS Color Module Level 4 (named colors and values); WCAG 2.2 (relative luminance and contrast formula).