cornsilk cornsilk #fff8dc
cornsilk is #fff8dc in hexadecimal, rgb(255, 248, 220) in decimal and hsl(48, 100, 93) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #fff8dc |
| RGB | rgb(255, 248, 220) |
| HSL | hsl(48, 100%, 93%) |
Harmonies
Complementary
#dbe2ffAnalogous
#ffe6db#f4ffdbTriadic
#dbfff8#f8dbffSplit complementary
#dbf4ff#e6dbffTints & shades
#ffea94#fff1b8#fff8db#fffbeb#fffbebAccessibility
| vs #ffffff | 1.07:1 |
| vs #000000 | 19.71:1 |
| Suggested text color | #000000 · 19.71:1 · WCAG AAA |
Similar named colors
FAQ
What is the HEX code for cornsilk?
cornsilk is #fff8dc in hex, rgb(255, 248, 220) in decimal and hsl(48, 100%, 93%) in HSL. In CSS you can write either color: cornsilk; or color: #fff8dc; — they are equivalent.
What colors go with cornsilk?
The complementary #dbe2ff gives the strongest contrast, the analogous pair #ffe6db / #f4ffdb is the safest, and the triad #dbfff8 / #f8dbff adds more tension. All three are derived from the 48° hue of #fff8dc.
Does #fff8dc read better on white or black?
Its contrast is 1.07:1 against white and 19.71:1 against black. Use #000000 text on it — that gives 19.71:1, which meets WCAG AAA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.