Yellow Color Code: HEX, RGB, 30 Shades of Yellow and Palettes

Yellow color code #FFFF00 with yellow swatches

The yellow color code is #FFFF00, which is RGB 255, 255, 0. It’s pure, bright yellow: full red plus full green light, with no blue at all. In CSS, you can simply write yellow. For a warmer, softer yellow that’s easier to design with, try mustard #FFDB58 (RGB 255, 219, 88).

This guide gives you the HEX, RGB, CMYK and HSL values for both, 30 named shades of yellow with their codes, six yellow color palettes and quick steps for using yellow in Canva, Photoshop and CSS.

Shades marked CSS are official CSS color keywords. The other names use the hex values listed in common color references such as Wikipedia’s color lists. CMYK figures are simple conversions from RGB, so check them against a printed proof before a big print run.

Yellow Color Code Values at a Glance

Pure yellow is as bright as a screen color gets, so it’s best for small highlights. Mustard is calmer and works for larger areas, backgrounds and brand colors.

Yellow color code swatches: yellow #FFFF00 and mustard yellow #FFDB58 with HEX, RGB, CMYK and HSL values
Pure yellow (#FFFF00) and mustard yellow (#FFDB58) side by side.
FormatYellowMustard yellow
HEX#FFFF00#FFDB58
RGB255, 255, 0255, 219, 88
CMYK0, 0, 100, 00, 14, 65, 0
HSL60°, 100%, 50%47°, 100%, 67%
HSV60°, 100%, 100%47°, 65%, 100%
CSSyellow or #FFFF00#FFDB58

Which Yellow Should You Use?

Yellow ranges from pale cream to deep amber. Pick the shade by what it needs to do:

  • #FFFF00 (yellow) for highlights, warning labels and playful accents. It’s very bright, so use it in small doses.
  • #FFDB58 (mustard) and #E9D66B (arylide yellow) for warm, vintage and earthy designs.
  • #FFD300 (cyber yellow), #FFC40C (mikado yellow) and #FFBF00 (amber) for bold, golden yellows that hold up well on dark backgrounds.
  • #FFFACD (lemon chiffon), #FFFDD0 (cream) and #FDFD96 (pastel yellow) for soft backgrounds.
  • #BDB76B (dark khaki) when you need a muted, olive-leaning yellow.

Yellow is the lightest of the bright hues, which is exactly why it’s hard to read on white. There’s more on that further down.

Shades of Yellow With Hex Codes

These 30 shades of yellow run from pale lemon and cream to golden amber. Copy any hex code and paste it straight into your design tool.

Chart of 30 shades of yellow with hex codes, from light yellow and cream to mustard and amber
30 shades of yellow with their hex and RGB codes.
ShadeHEXRGBCMYK
Yellow#FFFF00255, 255, 00, 0, 100, 0
Gold#FFD700255, 215, 00, 16, 100, 0
Light yellow#FFFFE0255, 255, 2240, 0, 12, 0
Lemon chiffon#FFFACD255, 250, 2050, 2, 20, 0
Light goldenrod yellow#FAFAD2250, 250, 2100, 0, 16, 2
Pale goldenrod#EEE8AA238, 232, 1700, 3, 29, 7
Khaki#F0E68C240, 230, 1400, 4, 42, 6
Dark khaki#BDB76B189, 183, 1070, 3, 43, 26
Lemon#FFF700255, 247, 00, 3, 100, 0
Lemon yellow#FFF44F255, 244, 790, 4, 69, 0
Laser lemon#FFFF66255, 255, 1020, 0, 60, 0
Canary#FFFF99255, 255, 1530, 0, 40, 0
Canary yellow#FFEF00255, 239, 00, 6, 100, 0
Pastel yellow#FDFD96253, 253, 1500, 0, 41, 1
Cream#FFFDD0255, 253, 2080, 1, 18, 0
Lemon meringue#F6EABE246, 234, 1900, 5, 23, 4
Mellow yellow#F8DE7E248, 222, 1260, 10, 49, 3
Maize#FBEC5D251, 236, 930, 6, 63, 2
Naples yellow#FADA5E250, 218, 940, 13, 62, 2
Mustard#FFDB58255, 219, 880, 14, 65, 0
Arylide yellow#E9D66B233, 214, 1070, 8, 54, 9
Flax#EEDC82238, 220, 1300, 8, 45, 7
Buff#F0DC82240, 220, 1300, 8, 46, 6
Jonquil#F4CA16244, 202, 220, 17, 91, 4
Citrine#E4D00A228, 208, 100, 9, 96, 11
Cyber yellow#FFD300255, 211, 00, 17, 100, 0
Golden yellow#FFDF00255, 223, 00, 13, 100, 0
Mikado yellow#FFC40C255, 196, 120, 23, 95, 0
Amber#FFBF00255, 191, 00, 25, 100, 0
Aureolin#FDEE00253, 238, 00, 6, 100, 1

Eight of these are official CSS color names: yellow, gold, lightyellow, lemonchiffon, lightgoldenrodyellow, palegoldenrod, khaki and darkkhaki. Note that CSS khaki (#F0E68C) is a pale yellow, not the sandy brown of khaki trousers.

Bright and Golden Yellow Color Codes

For strong, saturated yellows, try lemon #FFF700, canary yellow #FFEF00, golden yellow #FFDF00, cyber yellow #FFD300, mikado yellow #FFC40C or amber #FFBF00. The further you move toward amber, the more orange creeps in. For metallic tones, see our gold color code guide.

Light and Pastel Yellow Color Codes

For soft yellows, use light yellow #FFFFE0, lemon chiffon #FFFACD, cream #FFFDD0, pastel yellow #FDFD96, canary #FFFF99 or lemon meringue #F6EABE. They make friendly page backgrounds and pair well with the shades in our pastel color codes list.

Yellow Color Palettes (With Hex Codes)

Yellow looks best when something calmer does most of the work. Gray, navy and brown all give it room to shine. Here are six yellow color palettes ready to copy:

Six yellow color palettes with hex codes: yellow and gray, sunny pastel, yellow and navy, mustard and brown, purple and yellow, lemon fresh
Six yellow color palettes you can copy.
PaletteHex codesGood for
Yellow and gray#FFDB58, #F8DE7E, #333F48, #9AA5B1, #F5F7FAModern brands, offices and presentations
Sunny pastel#FFFACD, #FDFD96, #FFE4E1, #CDE7F0, #FFFFFFBaby showers, spring and kids’ rooms
Yellow and navy#1B2A49, #2E4A7D, #FFD300, #FFF7CC, #FFFFFFSchools, sports and nautical designs
Mustard and brown#6B4423, #A67B5B, #FFDB58, #F0DC82, #FAF3E0Autumn, coffee and vintage looks
Purple and yellow#4B0082, #663399, #FFDF00, #FFFACD, #FFFFFFPosters, events and bold social posts
Lemon fresh#FFF700, #FFF44F, #A8E063, #3E8E41, #FFFFFFFood, drinks and summer sales

Like the mustard and brown mix? Our brown color code guide has 30 browns to pair with it.

What Colors Go With Yellow?

  • Gray and charcoal: calm and modern, so yellow pops without shouting.
  • Navy and deep blue: a confident, high-contrast pair that stays easy to read.
  • Purple: yellow’s complementary color, so the pairing is bold and energetic. Our purple color code guide lists 30 purples to try.
  • Brown and tan: an earthy, autumnal look, especially with mustard.
  • White and green: fresh and summery, good for food and wellness brands.

How to Use the Yellow Color Code in Canva, Photoshop and CSS

  1. Canva: select your text or shape, click the color tile on the toolbar, choose the plus icon to add a new color and paste #FFDB58 (or any yellow code) into the hex field.
  2. Photoshop: click the foreground color swatch, type FFDB58 into the # field of the Color Picker and select OK.
  3. CSS: write background: #FFDB58; for mustard or background: yellow; for pure yellow.
  4. Brand kits: save each yellow with its RGB and CMYK values so your website, social posts and print all match. Our Canva tips and tricks cover more ways to keep colors consistent.

Make Sure Yellow Text Is Readable

Yellow is the hardest color to use for text. Pure yellow on white barely shows up, while black on yellow is one of the most readable combinations there is. Accessibility guidelines (WCAG) ask for a contrast ratio of at least 4.5:1 for normal text. Here’s how common yellow pairings score:

Yellow text contrast examples: yellow on white fails, yellow on black, black on mustard and cyber yellow on navy pass
Yellow text needs a dark background. On yellow, use black or navy text.
Text colorBackgroundContrast ratioNormal text
#FFFF00 yellow#FFFFFF white1.1:1Fails
#FFDB58 mustard#FFFFFF white1.4:1Fails
#FFFF00 yellow#000000 black19.6:1Passes
#000000 black#FFDB58 mustard15.5:1Passes
#FFD300 cyber yellow#1B2A49 navy9.9:1Passes
#6B4423 kobicha brown#FFFACD lemon chiffon8:1Passes

The rule of thumb: use yellow as a background or as an accent on dark colors, and set your text in black, navy or dark brown.

What Does the Color Yellow Mean?

Yellow is the color of sunshine, so it feels cheerful, warm and optimistic. It’s also one of the most eye-catching colors, which is why it’s used for warning signs and for school buses in the US and Canada. In branding, yellow signals friendliness and energy. Use it as a highlight rather than the main color, though, because large areas of bright yellow can tire the eyes.

For more color codes, see our guides to gold, brown and purple.

Frequently Asked Questions

What is the hex code for yellow?

The hex code for yellow is #FFFF00 (RGB 255, 255, 0), which is also the CSS color named yellow. For a softer, warmer yellow, use mustard #FFDB58.

What is the RGB code for yellow?

Pure yellow is RGB 255, 255, 0. Mustard yellow is RGB 255, 219, 88.

What is the CMYK code for yellow?

Pure yellow converts to CMYK 0, 0, 100, 0. Yellow is one of the four process inks, so it prints cleanly on most printers.

What is the hex code for mustard yellow?

Mustard yellow is #FFDB58 (RGB 255, 219, 88). For a slightly deeper, earthier tone, try arylide yellow #E9D66B.

What is the hex code for light yellow?

CSS light yellow is #FFFFE0. Pastel yellow #FDFD96 and lemon chiffon #FFFACD are other popular soft yellows.

Is gold a shade of yellow?

Yes. CSS gold #FFD700 is a deep yellow with a touch of orange. Metallic gold #D4AF37 is darker and more muted, so it reads as real gold on screen.