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
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| gold | #ffd700 | 255, 215, 0 | 11.6 |
| khaki | #f0e68c | 240, 230, 140 | 12.8 |
| greenyellow | #adff2f | 173, 255, 47 | 14.4 |
| palegoldenrod | #eee8aa | 238, 232, 170 | 17.1 |
| yellowgreen | #9acd32 | 154, 205, 50 | 18.1 |
| chartreuse | #7fff00 | 127, 255, 0 | 18.6 |
| lawngreen | #7cfc00 | 124, 252, 0 | 18.8 |
| lemonchiffon | #fffacd | 255, 250, 205 | 20 |
Δ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.