Cornsilk — #FFF8DC
#FFF8DC is a very light, vivid yellow. It is the CSS named color cornsilk.
Color values
| HEX | #FFF8DC |
| RGB | rgb(255, 248, 220) |
| HSL | hsl(48, 100%, 93%) |
| CMYK | cmyk(0%, 3%, 14%, 0%) |
| Decimal | 16775388 |
| CSS | color: #FFF8DC; |
| Android | 0xFFFFF8DC |
| Swift | UIColor(red: 1.000, green: 0.973, blue: 0.863, alpha: 1) |
Accessibility and contrast
| White text on #FFF8DC | 1.07:1 — AA fail · AA large fail · AAA fail |
| Black text on #FFF8DC | 19.71:1 — AA pass · AA large pass · AAA pass |
| Recommended text color | black |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #FFF8DC
Each swatch keeps the hue and saturation of #FFF8DC and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #FFF8DC
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #FFF8DC in code
/* CSS */
.element { color: #FFF8DC; background-color: #FFF8DC; }
.element { color: rgb(255 248 220); }
.element { color: hsl(48 100% 93%); }
/* Tailwind arbitrary value */
<div class="bg-[#FFF8DC] text-black">
/* SCSS variable */
$brand: #FFF8DC;
Frequently asked questions
What color is #FFF8DC?
#FFF8DC is a very light, vivid yellow, which CSS calls cornsilk. Its hue sits at 48° on the color wheel, with 100% saturation and 93% lightness.
What is #FFF8DC in RGB?
#FFF8DC converts to rgb(255, 248, 220) — 255 red, 248 green and 220 blue.
What is #FFF8DC in CMYK?
Approximately cmyk(0%, 3%, 14%, 0%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #FFF8DC be white or black?
Black gives the better contrast ratio (19.71:1 versus 1.07:1).
What is the complementary color of #FFF8DC?
#DBE2FF — the hue directly opposite #FFF8DC on the color wheel.