Toolman

cornsilk — #FFF8DC

#FFF8DC

rgb(255, 248, 220) · hsl(48, 100%, 93%) · CSS keyword cornsilk

Can you put text on it?

ContrastBody textLarge text
cornsilk on white1.07:1
cornsilk on black19.71:1AAAA

As a background, cornsilk takes black text: 19.71:1 against 1.07:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Using it

color: cornsilk;
color: #fff8dc;
color: rgb(255 248 220);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

Colours close to cornsilk

Frequently asked questions

What is the hex code for cornsilk?

The hex code for cornsilk is #FFF8DC — RGB 255, 248, 220.

Can I use cornsilk for text?

Not on a white background. cornsilk reaches only 1.07:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.

Should text on cornsilk be black or white?

Black — 19.71:1 against 1.07:1 the other way.

Other named colours

#FFF8DC in full — tints, shades and harmonies · All named colours · Colour reference