cornsilk (#FFF8DC)

cornsilk is a CSS named color with the hex code #FFF8DC, rgb(255, 248, 220). It is a very pale, vivid amber.

cornsilk#FFF8DC
Keywordcornsilk
HEX#fff8dc
RGBrgb(255, 248, 220)
HSLhsl(48, 100%, 93%)

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

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

ColorHEXRGBΔE 2000
beige#f5f5dc245, 245, 2203.1
lightyellow#ffffe0255, 255, 2243.4
papayawhip#ffefd5255, 239, 2134.6
lightgoldenrodyellow#fafad2250, 250, 2104.8
oldlace#fdf5e6253, 245, 2305
lemonchiffon#fffacd255, 250, 2055
ivory#fffff0255, 255, 2405.1
blanchedalmond#ffebcd255, 235, 2055.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.

Frequently asked questions

What is the hex code for cornsilk?
#FFF8DC.
What colors are similar to cornsilk?
beige (#f5f5dc), lightyellow (#ffffe0), papayawhip (#ffefd5).