#hexpedia

Cornsilk

#FFF8DC

Color conversions

Reference values for common CSS, design, and accessibility formats.

FormatValueCopy
HEXFFF8DC
HEX with ##FFF8DC
RGBrgb(255, 248, 220)
RGBArgba(255, 248, 220, 1)
HSLhsl(48 100% 93.14%)
HSLAhsla(48, 100%, 93.14%, 1)
HSVhsv(48, 13.73%, 100%)
CMYKcmyk(0%, 2.75%, 13.73%, 0%)
OKLCHoklch(97.73% 0.0373 95.44)

Closest named matches

Color modifications

Suggested pairings

Use this color in CSS

Accessibility quick-check

White text

1.07:1

Decorative only

Black text

19.71:1

AAA normal

Reference notes

#FFF8DC is a light, saturated yellow color closest to Cornsilk. The color has RGB channels of 255, 248, and 220; in HSL terms, it is centered near 48 degrees with 100% saturation and 93% lightness. In a design system, this warm reading is a useful shortcut for deciding whether the color should act as a primary accent, a supporting surface, or a quiet divider. The safest usage pattern is to test it against both light and dark surfaces, then reserve the weaker text pairing for decoration rather than essential labels. If the color feels too forceful at full strength, the lighter, darker, and desaturated variants usually provide a calmer path for production UI. For editorial or product interfaces, reserve the most saturated use for accents and repeat softer variants in borders, labels, or background fills. This makes it useful for badges, highlights, product accents, and moments where quick recognition matters. In CSS systems, define it as a custom property first so variations, shadows, and gradients can stay consistent.