Skip to content

20 Shades of Yellow with Hex Codes

Yellow is the lightest hue on the wheel, which is exactly what makes it hard to use. Mustards feel vintage and grounded; bright lemons feel optimistic and loud.

#FFFF00

The yellow hex code is #FFFF00

#FFFF00 is rgb(255, 255, 0) in RGB, hsl(60, 100%, 50%) in HSL, and about cmyk(0%, 0%, 100%, 0%) in CMYK. Every other yellow below has its own hex code.

#FFFF00rgb(255, 255, 0)hsl(60, 100%, 50%)

Named Yellow Colors and Their Hex Codes

Ordered darkest to lightest. Names marked CSS are color keywords you can write directly in a stylesheet; the rest are common design and print names. Select any swatch for its full breakdown.

OliveCSS
#808000rgb(128, 128, 0)
Ochre
#CC7722rgb(204, 119, 34)
DarkKhakiCSS
#BDB76Brgb(189, 183, 107)
Honey
#EBA937rgb(235, 169, 55)
Saffron
#F4C430rgb(244, 196, 48)
Citrine
#E4D00Argb(228, 208, 10)
GoldCSS
#FFD700rgb(255, 215, 0)
Flax
#EEDC82rgb(238, 220, 130)
Mustard
#FFDB58rgb(255, 219, 88)
KhakiCSS
#F0E68Crgb(240, 230, 140)
PaleGoldenrodCSS
#EEE8AArgb(238, 232, 170)
MoccasinCSS
#FFE4B5rgb(255, 228, 181)
Lemon
#FFF700rgb(255, 247, 0)
Butter
#FFFD74rgb(255, 253, 116)
YellowCSS
#FFFF00rgb(255, 255, 0)
LightGoldenrodYellowCSS
#FAFAD2rgb(250, 250, 210)
CornsilkCSS
#FFF8DCrgb(255, 248, 220)
LemonChiffonCSS
#FFFACDrgb(255, 250, 205)
Canary
#FFFF99rgb(255, 255, 153)
LightYellowCSS
#FFFFE0rgb(255, 255, 224)

Yellow Color Chart: Hex, RGB, HSL & CMYK

Every yellow above in all four common formats. CMYK is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

NameHexRGBHSLCMYK
Olive#808000rgb(128, 128, 0)hsl(60, 100%, 25%)cmyk(0%, 0%, 100%, 50%)
Ochre#CC7722rgb(204, 119, 34)hsl(30, 71%, 47%)cmyk(0%, 42%, 83%, 20%)
DarkKhaki#BDB76Brgb(189, 183, 107)hsl(56, 38%, 58%)cmyk(0%, 3%, 43%, 26%)
Honey#EBA937rgb(235, 169, 55)hsl(38, 82%, 57%)cmyk(0%, 28%, 77%, 8%)
Saffron#F4C430rgb(244, 196, 48)hsl(45, 90%, 57%)cmyk(0%, 20%, 80%, 4%)
Citrine#E4D00Argb(228, 208, 10)hsl(54, 92%, 47%)cmyk(0%, 9%, 96%, 11%)
Gold#FFD700rgb(255, 215, 0)hsl(51, 100%, 50%)cmyk(0%, 16%, 100%, 0%)
Flax#EEDC82rgb(238, 220, 130)hsl(50, 76%, 72%)cmyk(0%, 8%, 45%, 7%)
Mustard#FFDB58rgb(255, 219, 88)hsl(47, 100%, 67%)cmyk(0%, 14%, 65%, 0%)
Khaki#F0E68Crgb(240, 230, 140)hsl(54, 77%, 75%)cmyk(0%, 4%, 42%, 6%)
PaleGoldenrod#EEE8AArgb(238, 232, 170)hsl(55, 67%, 80%)cmyk(0%, 3%, 29%, 7%)
Moccasin#FFE4B5rgb(255, 228, 181)hsl(38, 100%, 85%)cmyk(0%, 11%, 29%, 0%)
Lemon#FFF700rgb(255, 247, 0)hsl(58, 100%, 50%)cmyk(0%, 3%, 100%, 0%)
Butter#FFFD74rgb(255, 253, 116)hsl(59, 100%, 73%)cmyk(0%, 1%, 55%, 0%)
Yellow#FFFF00rgb(255, 255, 0)hsl(60, 100%, 50%)cmyk(0%, 0%, 100%, 0%)
LightGoldenrodYellow#FAFAD2rgb(250, 250, 210)hsl(60, 80%, 90%)cmyk(0%, 0%, 16%, 2%)
Cornsilk#FFF8DCrgb(255, 248, 220)hsl(48, 100%, 93%)cmyk(0%, 3%, 14%, 0%)
LemonChiffon#FFFACDrgb(255, 250, 205)hsl(54, 100%, 90%)cmyk(0%, 2%, 20%, 0%)
Canary#FFFF99rgb(255, 255, 153)hsl(60, 100%, 80%)cmyk(0%, 0%, 40%, 0%)
LightYellow#FFFFE0rgb(255, 255, 224)hsl(60, 100%, 94%)cmyk(0%, 0%, 12%, 0%)

Yellow Scale from Light to Dark

A 12-step lightness scale built from the core yellow hue, holding hue and saturation constant. This is the shape of a design-system color ramp. Select any swatch for the full breakdown of that color.

Need a perceptually even ramp with semantic roles and contrast evidence? Generate yellow design tokens.

What Yellow Communicates

Yellow has the highest relative luminance of any saturated hue, so it draws the eye instantly and fails text contrast on white almost without exception. It is best used as a highlight or a background rather than as text. Mustard and ochre — yellow with the lightness pulled down — behave far better and carry a warm, retro character.

Where yellow works well

  • Highlight backgrounds and attention markers
  • Caution and pending states in interfaces
  • Retro and editorial palettes using mustard and ochre
  • Accent pairings against deep navy or charcoal, where yellow has room to shine

Colors that pair with yellow

Copy the Yellow Palette as CSS

Every shade on this page as CSS custom properties, ready to paste into a stylesheet.

:root {
  --yellow-olive: #808000;
  --yellow-ochre: #CC7722;
  --yellow-darkkhaki: #BDB76B;
  --yellow-honey: #EBA937;
  --yellow-saffron: #F4C430;
  --yellow-citrine: #E4D00A;
  --yellow-gold: #FFD700;
  --yellow-flax: #EEDC82;
  --yellow-mustard: #FFDB58;
  --yellow-khaki: #F0E68C;
  --yellow-palegoldenrod: #EEE8AA;
  --yellow-moccasin: #FFE4B5;
  --yellow-lemon: #FFF700;
  --yellow-butter: #FFFD74;
  --yellow-yellow: #FFFF00;
  --yellow-lightgoldenrodyellow: #FAFAD2;
  --yellow-cornsilk: #FFF8DC;
  --yellow-lemonchiffon: #FFFACD;
  --yellow-canary: #FFFF99;
  --yellow-lightyellow: #FFFFE0;
}

Yellow Color Questions

What is the hex code for yellow?

The standard yellow hex code is #FFFF00, which is rgb(255, 255, 0) in RGB and hsl(60, 100%, 50%) in HSL. There is no single "correct" yellow — this page lists 20 named yellow shades with their own hex codes.

How many shades of yellow are there?

Displays can render millions of distinct yellow values, so any count is a matter of which ones have names. This page lists 20 named shades of yellow, combining the CSS color keywords with widely used yellow names from design and print references, plus a generated 12-step lightness scale.

Can I use yellow for text on a white background?

#FFFF00 scores 1.07:1 against white. WCAG 2.2 asks for at least 4.5:1 for normal body text and 3:1 for large text, so this shade does not pass and needs to be darkened. Check any specific pairing in the contrast checker.

What colors go well with yellow?

purple, blue, gray all pair well with yellow. For a specific shade, open its color page to see the complementary, analogous, and triadic colors calculated from its exact hue.

More Color Families