Description
Cornsilk has a hue of 48°, saturation 100% and lightness 93%, which places it in the yellow family. Its strongest channel is red (255).
Using cornsilk in CSS
.title { color: cornsilk; }
.box { background: cornsilk; border-color: #fff8dc; }
.soft { background: rgb(255 248 220 / 20%); } /* cornsilk 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 | 3.1 |
| lightyellow | #ffffe0 | 255, 255, 224 | 3.4 |
| papayawhip | #ffefd5 | 255, 239, 213 | 4.6 |
| lightgoldenrodyellow | #fafad2 | 250, 250, 210 | 4.8 |
| oldlace | #fdf5e6 | 253, 245, 230 | 5 |
| lemonchiffon | #fffacd | 255, 250, 205 | 5 |
| ivory | #fffff0 | 255, 255, 240 | 5.1 |
| blanchedalmond | #ffebcd | 255, 235, 205 | 5.9 |
Δ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.71:1. Black body text on cornsilk meets WCAG AA; white text does not.