Cornsilk Color
HEX #FFF8DC · rgb(255, 248, 220) · hsl(48, 100%, 93%)
Cornsilk color codes
Cornsilk is one of the named colors every browser understands. In CSS you can write it as cornsilk or #FFF8DC.
| Format | Value | |
|---|---|---|
| HEX | #FFF8DC | |
| RGB | rgb(255, 248, 220) | |
| HSL | hsl(48, 100%, 93%) | |
| CMYK | 0%, 3%, 14%, 0% | |
| CSS name | cornsilk |
.example {
color: cornsilk;
background-color: #FFF8DC;
border-color: rgb(255, 248, 220);
}
Colors that go with cornsilk
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of cornsilk
Tints mix the color with white; shades mix it with black.
Cornsilk
Contrast and readability
19.71:1
passes AA and AAA
1.07:1
fails
Use black text on cornsilk. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for cornsilk?
The hex code for cornsilk is #FFF8DC.
What is the RGB value of cornsilk?
Cornsilk is rgb(255, 248, 220): 255 red, 248 green and 220 blue on a 0 to 255 scale.
What color goes with cornsilk?
Its complementary color is #DCE3FF, which is closest to the named color lavender. Analogous and triadic matches are listed on this page.
Should text on cornsilk be black or white?
Use black text. The contrast ratio is 19.71:1 with black and 1.07:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.