Cornsilk — #fff8dc

Cornsilk (#fff8dc) is a very light, vivid yellow. It is a CSS named color, so you can use it in stylesheets as color: cornsilk as well as by its hex code. In RGB it is rgb(255, 248, 220); in HSL, hsl(48, 100%, 93%).

#fff8dc

Color conversions

Hex#fff8dc
CSS namecornsilk
RGBrgb(255, 248, 220)
HSLhsl(48, 100%, 93%)
CMYK0%, 3%, 14%, 0%
CSS examplecolor: #fff8dc; background-color: rgb(255, 248, 220);

Tints and shades of #fff8dc

The hue stepped through seven lightness levels, each matched to the closest named or web-safe color — useful for backgrounds, borders, text and hover states that all belong to one family. Click any swatch for its full breakdown.

Color schemes with #fff8dc

Complementary — maximum contrast, from opposite sides of the color wheel:

Analogous — neighbours on the wheel, naturally harmonious:

Triadic — three colors evenly spaced for balanced variety:

Tetradic — four colors at 90° intervals:

Text contrast and accessibility

On a #fff8dc background, black text gives the better contrast. WCAG requires 4.5:1 for normal text and 3:1 for large text (AA), or 7:1 and 4.5:1 for AAA.

Text colorContrast ratioNormal textLarge text
White text (#ffffff)1.07:1FailsFails
Black text (#000000)19.71:1AAAAAA

Similar named colors

The CSS named colors closest to #fff8dc: