CSS named color
Cornsilk Color Code
Cornsilk is a very light, vivid yellow with the hex code #FFF8DC. In RGB it is rgb(255, 248, 220), in HSL hsl(48, 100%, 93%) and in CMYK cmyk(0%, 3%, 14%, 0%).
Color values
In CSS you can write it as the keyword cornsilk.
White text on Cornsilk has a contrast ratio of 1.07:1 and black text 19.71:1, so black text is the more readable choice.
The closest Tailwind CSS color is Yellow 50 (#FEFCE8).
Use Cornsilk in CSS
.element {
color: cornsilk;
background-color: #fff8dc;
border-color: rgb(255, 248, 220);
} Tints and shades of Cornsilk
Ten steps from light to dark at the same hue. Click any swatch to copy it.
Colors that go with Cornsilk
Color-wheel harmonies built from #FFF8DC. Click a swatch to copy it or open the set in the color wheel.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on Cornsilk
Colors similar to Cornsilk
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
Palettes with similar colors
Questions about Cornsilk
What is the hex code for Cornsilk?
The hex code for Cornsilk is #FFF8DC. Its RGB value is rgb(255, 248, 220) and its HSL value is hsl(48, 100%, 93%).
What colors go with Cornsilk?
The complementary color of Cornsilk is #DBE2FF. For a softer scheme try the analogous colors #FFE6DB and #F4FFDB; for a balanced three-color scheme use the triadic colors #DBFFF8 and #F8DBFF.
Is Cornsilk readable as a text color?
On a white background Cornsilk has a contrast ratio of 1.07:1, which does not pass WCAG AA for normal text (4.5:1). On black it reaches 19.71:1.