Skip to content

Yellow

#FFFF00

Yellow is the hex color #FFFF00, with RGB values 255, 255, 0. It is a CSS color keyword, so browsers render it from the name alone, and its value is fixed by the CSS Color Module.

YellowCSS keyword

Quick colors, then fill the screen

Or a gradient

Or let it move

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

Yellow color codes

Every value for #FFFF00, ready to paste. Click any code to copy it.

Channel values for #FFFF00 in each number base
ChannelDecimalShareHexOctalBinary
Red255100%FF37711111111
Green255100%FF37711111111
Blue00%00000000000

The nearest web-safe color is #FFFF00, from the 216-color palette browsers agreed on before displays could be trusted with more.

About yellow

Red and green at full output with no blue. Close to the brightest thing a display can show short of white, which is why it is the standard colour for hazard markings.

Shades, tints and tones

Every step is generated from #FFFF00. Click a swatch to copy its hex.

Shades of yellow

A shade is the base color with black mixed in. Shades read as deeper and more dramatic, and they are what you reach for when a color needs to recede or carry weight.

Tints of yellow

A tint is the base color with white mixed in. Tints turn pastel as they lighten, which makes them useful for backgrounds and for anything that has to sit behind text.

Tones of yellow

A tone is the base color with grey mixed in. Tones lose the shout without losing the hue, and they are usually what separates a considered palette from a loud one.

The yellow scale

The same color as the 50 to 950 ladder every CSS framework uses, with #FFFF00 at 500. Click a step to copy its hex, or take the whole scale as variables for a design system.

Color schemes built on yellow

Harmonies are positions on the color wheel rather than matters of taste, which is why they keep working across very different designs.

Complementary

Two colors from opposite sides of the wheel. They make each other look more vivid, which is why the pairing is used for anything that needs to stand out.

Analogous

Three neighbours on the wheel. Nothing competes, so the result reads calm and settled, closer to how colour behaves in nature.

Split complementary

The base plus the two colors either side of its complement. It keeps most of the contrast while being much easier to balance.

Triadic

Three colors spaced evenly around the wheel. Strong and lively, and usually best with one dominant color and two accents.

Tetradic

Two complementary pairs, forming a rectangle on the wheel. The richest scheme available, and the hardest to keep from shouting.

Monochromatic

One hue at different lightness levels. Effortlessly cohesive, and the safest way to build a palette around a brand color.

Colors close to #FFFF00

Near neighbours, for when this color is almost right. Each one shifts hue, saturation or lightness by a small step.

Yellow color palettes

Five-color palettes built around #FFFF00, each following a different scheme. Click any swatch to copy it, or open the generator to build your own.

Analogous

Complementary

Triadic

Monochromatic

Open the palette generator to lock the colors you like and regenerate the rest.

Contrast and readability

Whether yellow works as text, and what to put on top of it when it is the background. Ratios follow WCAG 2.1, where 4.5 is the bar for body text and 3 for large text.

Yellow text on white background

1.07:1 · Poor

Large text at 24 pixels

Body text at 16 pixels. A flat field of color removes every variable, which is what makes it useful for judging a display.

  • Body AA
  • Body AAA
  • Large AA
  • Large AAA

Yellow text on black background

19.56:1 · Excellent

Large text at 24 pixels

Body text at 16 pixels. A flat field of color removes every variable, which is what makes it useful for judging a display.

  • Body AA
  • Body AAA
  • Large AA
  • Large AAA

Used the other way round, #FFFF00 as a background takes #000000 text. That is the higher-contrast of the two, and it is what the tool picks automatically for any chrome sitting on your color.

Yellow reads better on a black background of the two. Contrast is a property of the pair, not of one color, so a color that fails here can still be perfectly usable against a different partner.

Share

List of yellow shades

Every named yellow in the library, 6 of them CSS keywords whose values are normative rather than conventional. Codes are rounded to whole numbers for HSL.

SwatchNameHexRGBHSL
Yellow is a CSS keyword is the color on this page#FFFF00255, 255, 060, 100%, 50%
Gold is a CSS keyword#FFD700255, 215, 051, 100%, 50%
Mustard#FFDB58255, 219, 8847, 100%, 67%
Khaki is a CSS keyword#F0E68C240, 230, 14054, 77%, 75%
Champagne#F7E7CE247, 231, 20637, 72%, 89%
Cream#FFFDD0255, 253, 20857, 100%, 91%
Ivory is a CSS keyword#FFFFF0255, 255, 24060, 100%, 97%
Lemon#FFF700255, 247, 058, 100%, 50%
Sand#C2B280194, 178, 12845, 35%, 63%
Wheat is a CSS keyword#F5DEB3245, 222, 17939, 77%, 83%
Goldenrod is a CSS keyword#DAA520218, 165, 3243, 74%, 49%