Skip to content

Cornsilk

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

Cornsilk#FFF8DC

Color codes

  • CSS namecornsilk
  • HEX#FFF8DC
  • RGBrgb(255 248 220)
  • HSLhsl(48 100% 93%)
  • HSB / HSVhsb(48, 14%, 100%)
  • OKLCHoklch(97.7% 0.037 95.4)
  • CMYKcmyk(0%, 3%, 14%, 0%)

White text

1.06:1 · fails WCAG

Black text

19.71:1 · passes WCAG AAA

Shades

50#F9F2D6
100#DCD5BA
200#BFB89E
300#A39D83
400#888269
500#6E6850
600#554F38
700#3D3821
800#27210B

Complementary

#FFF8DC
#F5F7FF

Analogous

#FFF8DC
#FFF6EE
#F1FDE2

Triadic

#FFF8DC
#ECFBFE
#FFF4FC

About this color

Cornsilk in CSS and design

Cornsilk is a white with a faint yellow tint. Cornsilk is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

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

For text on cornsilk, black reads best. Check other combinations with the contrast checker, or browse all CSS color names.

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), in HSL hsl(48 100% 93%). For print, cmyk(0%, 3%, 14%, 0%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

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.

Which colors go with cornsilk?

Its complementary color is #F5F7FF, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #FFF6EE and #F1FDE2. The palette generator builds more combinations.