Corn Silk Color Code (#fff8dc)

Corn Silk is #fff8dc in hex and rgb(255, 248, 220) — a very light yellow. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Corn Silk
#fff8dc
CSS namecornsilk
Hex#fff8dc
RGBrgb(255, 248, 220)
HSLhsl(48 100% 93%)
HWBhwb(48 86% 0%)
CMYK0%, 3%, 14%, 0%

Tints and shades

Color harmonies

About Corn Silk

Corn Silk (cornsilk) is a very light, vivid yellow with the hex code #fff8dc, or rgb(255, 248, 220). In HSL it sits at a hue of 48°, 100% saturation and 93% lightness. It is one of the 148 named colors every browser understands, so you can write color: cornsilk; instead of the hex value.

Using Corn Silk for text and backgrounds

PairingContrast ratioWCAG
Corn Silk text on white1.07 : 1fails
Corn Silk text on black19.71 : 1AAA

On a corn silk background, use black text (19.71 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: cornsilk;               /* or #fff8dc */
  background-color: #fff8dc;
  border: 1px solid rgb(255 248 220 / 50%);
}

Similar named colors

Light Yellow (#ffffe0), Beige (#f5f5dc), Old Lace (#fdf5e6), Light Goldenrod Yellow (#fafad2), Papaya Whip (#ffefd5), Linen (#faf0e6).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for corn silk?
#fff8dc — that is rgb(255, 248, 220) and hsl(48, 100%, 93%). In CSS you can also just write cornsilk.
Is corn silk text readable on white?
Its contrast ratio on white is 1.07 : 1, which fails WCAG — use it for decoration or on a dark background instead.
What colors go well with corn silk?
Its complementary color is #dbe2ff; analogous colors #ffe6db and #f4ffdb sit next to it on the color wheel.