Cornsilk Color Code: Hex #FFF8DC
The hex code for Cornsilk is #FFF8DC (the CSS keyword cornsilk). Cornsilk RGB code: rgb(255, 248, 220).
#FFF8DCThe same code in all 2 listsCornsilk color codes: the Cornsilk hex code in every format
Sources
Properties
- Hex codes
- the same in all 2 color lists
- Family
- yellow
- Contrast
- 1.07:1 with white, 19.71:1 with black
- CSS keyword
- cornsilk
- Character
- very light, muted
- Readable text on it
- black (AA)
It represents the color of cornsilk, the threads on an ear of corn; recorded as a color name from 1927 and added to the X11 list in 1987.
A very light, muted yellow with a warm cast. In code, cornsilk gives exactly this hex value. Every list that includes the name agrees on it, so there is only one code to remember.
Black text reads best on it; white text does not pass WCAG AA. Its exact opposite on the color wheel cannot be shown on screens, so the complementary palette uses the closest displayable version. Next to Beige, its closest named neighbour, it looks about as light, about as saturated and neither warmer nor cooler; beside Off White it looks about as light, about as saturated and neither warmer nor cooler.
Colors that go with Cornsilk
Complementary: the opposite of Cornsilk
#FFF8DCBlack text 19.71:1#F5F7FFBlack text 19.63:1#FFFBECBlack text 20.26:1#98999EBlack text 7.39:1
Analogous
#FFF6EDBlack text 19.66:1#FFF8DCBlack text 19.71:1#F1FDE2Black text 19.89:1#FFFCF1Black text 20.45:1
Triadic
#FFF8DCBlack text 19.71:1#EBFBFFBlack text 19.78:1#FFF4FCBlack text 19.60:1#FFFDF6Black text 20.63:1
Monochrome
#48453CWhite text 9.58:1#9E9A88Black text 7.43:1#FFF8DCBlack text 19.71:1#FFFAE7Black text 20.08:1#FFFCF1Black text 20.45:1
With neutrals
#FFF8DCBlack text 19.71:1#FFFDF6Black text 20.63:1#22201BWhite text 16.27:1#A4A29BBlack text 8.22:1
Preview
Heading on Cornsilk
Body text on this color, 19.71:1.
ButtonHeading in Cornsilk
Text in this color on white, 1.07:1.
ButtonTints and shades
#FFFDF6#FFFCF1#FFFBEC#FFFAE7#FFF9E1#FFF8DC#CEC8B1#9E9A88#716E61#48453C#22201B
WhiteCornsilkBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “Shades of white” (checked 2 Nov 2026)
- Listed in CSS Color 4, meodai color-name-list. About these lists.
Try it: