Skip to content

Cornsilk

Cornsilk is an off-white with a faint yellow tint. Hex code #FFF8DC.

Cornsilk#FFF8DC

Cornsilk color codes

  • CSS namecornsilk
  • HEX#FFF8DC
  • RGBrgb(255, 248, 220)
  • HSLhsl(48, 100%, 93%)
  • OKLCHoklch(97.7% 0.037 95.4)
HSB and CMYK values
  • HSB / HSVhsb(48, 14%, 100%)
  • CMYKC0 M3 Y14 K0

White text

1.06:1 · fails WCAG

Black text

19.71:1 · passes WCAG AAA

Shades of cornsilk

A darker shade of cornsilk is #DCD5BA (100).

Colors that go with cornsilk

Complementary

Analogous

Triadic

The complementary color of cornsilk is #DCE3FF, close to lavender.

Click a color to copy its hex code.

Colors similar to cornsilk

Each compared with cornsilk.

About this color

Cornsilk in CSS and design

Cornsilk is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same cornsilk:

color: cornsilk;
color: #FFF8DC;
color: rgb(255, 248, 220);
color: hsl(48, 100%, 93%);

Frequently asked questions

What is the hex code for cornsilk?

#FFF8DC. In CSS you can also use the keyword cornsilk, which works in every browser.

What is cornsilk in RGB and HSL?

In RGB it is rgb(255, 248, 220) and in HSL hsl(48, 100%, 93%). In CMYK it is about C0 M3 Y14 K0, though printed colors vary with paper and ink.

Should I use black or white text on cornsilk?

Black text works better: it has a contrast ratio of 19.71:1 and passes WCAG AAA. White text reaches 1.06:1.

What is the complementary color of cornsilk?

#DCE3FF, close to lavender. It sits opposite cornsilk on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.

Which colors go with cornsilk?

For strong contrast, pair it with its complementary color #DCE3FF. For a calmer look, combine it with its analogous neighbors #FFE7DC and #F5FFDC. The palette generator builds more combinations.