Cornsilk hex code

New launch

Tell us

Color codes·#FFF8DC

Cornsilk hex code

The hex code for cornsilk is #FFF8DC. In RGB that is rgb(255, 248, 220) and in HSL it is hsl(48, 100%, 93%).

Cornsilk hex code
HEX to RGB Converter

The hex code for cornsilk is #FFF8DC. In RGB that is rgb(255, 248, 220) and in HSL it is hsl(48, 100%, 93%).

Cornsilk

Cornsilk · #FFF8DC

Colour codes

HEX
#FFF8DC
RGB
rgb(255, 248, 220)
HSL
hsl(48, 100%, 93%)
CMYK
0, 3, 14, 0
CSS name
cornsilk
Contrast on white
1.07:1
Contrast on black
19.71:1

Tints and shades

20% lighter · #fff9e3

40% lighter · #fffbea

60% lighter · #fffcf1

80% lighter · #fffef8

20% darker · #ccc6b0

40% darker · #999584

60% darker · #666358

80% darker · #33322c

Complementary colour

Cornsilk

Cornsilk · #FFF8DC

Complement

Opposite on the colour wheel · #dbe2ff

Frequently asked questions

What is the hex code for cornsilk?

The hex code for cornsilk is #FFF8DC. In RGB that is rgb(255, 248, 220) and in HSL it is hsl(48, 100%, 93%).

Can I use cornsilk for text?

It has a contrast ratio of 1.07:1 on white and 19.71:1 on black. Body text needs 4.5:1 under WCAG AA, so it works as text on a dark background, not on white.

What colour goes with cornsilk?

Its complementary colour, opposite on the colour wheel, is #DBE2FF. Pairing a colour with its complement gives the strongest contrast; for something calmer, use a tint or shade of cornsilk instead.

Is cornsilk a CSS colour name?

Yes. CSS accepts the keyword cornsilk, so color: cornsilk and color: #FFF8DC render exactly the same.