yellow (#FFFF00)

yellow is a CSS named color with the hex code #FFFF00, rgb(255, 255, 0). It is a medium, vivid yellow.

yellow#FFFF00
Keywordyellow
HEX#ffff00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)

Full #FFFF00 details: palettes, shades, color-blind view →

Description

Yellow has a hue of 60°, saturation 100% and lightness 50%, which places it in the yellow family. Its strongest channel is red (255).

Using yellow in CSS

.title { color: yellow; }
.box   { background: yellow; border-color: #ffff00; }
.soft  { background: rgb(255 255 0 / 20%); }   /* yellow at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
gold#ffd700255, 215, 011.6
khaki#f0e68c240, 230, 14012.8
greenyellow#adff2f173, 255, 4714.4
palegoldenrod#eee8aa238, 232, 17017.1
yellowgreen#9acd32154, 205, 5018.1
chartreuse#7fff00127, 255, 018.6
lawngreen#7cfc00124, 252, 018.8
lemonchiffon#fffacd255, 250, 20520

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 1.07:1; with black text: 19.56:1. Black body text on yellow meets WCAG AA; white text does not.

Frequently asked questions

What is the hex code for yellow?
#FFFF00.
What colors are similar to yellow?
gold (#ffd700), khaki (#f0e68c), greenyellow (#adff2f).