White on cornsilkBlack on cornsilk
Shades to explore
YELLOW FAMILY
Cornsilk colour code
#FFF8DCCornsilk (#FFF8DC) is a pale, vivid shade in the yellow family. Its HSL lightness is 93% and saturation is 100%.
HEX
#FFF8DCRGB
rgb(255, 248, 220)HSL
hsl(48, 100%, 93%)Text contrast
With white: 1.07:1 · With black: 19.71:1
Normal text needs 4.5:1 for AA; large text needs 3:1.
Use Cornsilk in CSS
Copy this background and text pairing into your stylesheet.
.colour-cornsilk {
background-color: #FFF8DC;
color: #000000;
}Use the HEX value for a consistent digital reference. Descriptive colour names can vary between collections and are not always valid CSS keywords. This code does not identify a paint, fabric or print specification.
Using Cornsilk
Try it for highlights and callouts, checking text contrast especially carefully on lighter shades.
Black text on Cornsilk
19.71:1 · AAA for normal text
This pairing uses #000000 text on #FFF8DC. Results apply to solid colours; recheck contrast if you add transparency, imagery or effects.