Description
Lightyellow (read as "light yellow") has a hue of 60°, saturation 100% and lightness 94%, which places it in the yellow family. The "light" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080).
Using lightyellow in CSS
.title { color: lightyellow; }
.box { background: lightyellow; border-color: #ffffe0; }
.soft { background: rgb(255 255 224 / 20%); } /* lightyellow 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 |
|---|---|---|---|
| beige | #f5f5dc | 245, 245, 220 | 2.7 |
| lightgoldenrodyellow | #fafad2 | 250, 250, 210 | 2.8 |
| cornsilk | #fff8dc | 255, 248, 220 | 3.4 |
| lemonchiffon | #fffacd | 255, 250, 205 | 4.2 |
| ivory | #fffff0 | 255, 255, 240 | 5.5 |
| honeydew | #f0fff0 | 240, 255, 240 | 7.5 |
| oldlace | #fdf5e6 | 253, 245, 230 | 7.5 |
| papayawhip | #ffefd5 | 255, 239, 213 | 8 |
Δ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.02:1; with black text: 20.63:1. Black body text on lightyellow meets WCAG AA; white text does not.