Cornsilk Color

HEX #FFF8DC · rgb(255, 248, 220) · hsl(48, 100%, 93%)

Cornsilk color codes

Cornsilk is one of the named colors every browser understands. In CSS you can write it as cornsilk or #FFF8DC.

FormatValue
HEX#FFF8DC
RGBrgb(255, 248, 220)
HSLhsl(48, 100%, 93%)
CMYK0%, 3%, 14%, 0%
CSS namecornsilk
.example {
  color: cornsilk;
  background-color: #FFF8DC;
  border-color: rgb(255, 248, 220);
}

Colors that go with cornsilk

These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.

#DCE3FFComplementary
#FFE7DCAnalogous
#F5FFDCAnalogous
#DCFFF8Triadic
#F8DCFFTriadic

Tints and shades of cornsilk

Tints mix the color with white; shades mix it with black.

#FFFEFC90% white
#FFFDF675% white
#FFFCF160% white
#FFFBEC45% white
#FFFAE730% white
#FFF9E115% white
#FFF8DCBase
Cornsilk
#D9D3BB15% black
#B3AE9A30% black
#8C887945% black
#66635860% black
#403E3775% black
#1A191690% black

Contrast and readability

Black text
19.71:1
passes AA and AAA
White text
1.07:1
fails

Use black text on cornsilk. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.

Frequently asked questions

What is the hex code for cornsilk?

The hex code for cornsilk is #FFF8DC.

What is the RGB value of cornsilk?

Cornsilk is rgb(255, 248, 220): 255 red, 248 green and 220 blue on a 0 to 255 scale.

What color goes with cornsilk?

Its complementary color is #DCE3FF, which is closest to the named color lavender. Analogous and triadic matches are listed on this page.

Should text on cornsilk be black or white?

Use black text. The contrast ratio is 19.71:1 with black and 1.07:1 with white. WCAG AA asks for at least 4.5:1 for normal text.

Similar named colors

Pick any other color with the color picker, or browse all named colors.