Cornsilk color

Inspect Cornsilk (#FFF8DC) in HEX, RGB, HSL, LCH and OKLCH, check its contrast, and copy the value you need.

#fff8dc

Cornsilk

Cornsilk color values

Cornsilk

#FFF8DC

Black text reads best on this background, at 19.71:1.

Cornsilk is one of the 148 CSS named colors, and resolves to #FFF8DC in every browser. In numbers that is rgb(255, 248, 220) and hsl(48, 100%, 93%). Perceptually it is a very light, near-neutral color: OKLCH puts its lightness at 98% and its chroma at 0.037. It sits in the yellows at 95 degrees of OKLCH hue, and reads as a neutral color.

White text only reaches 1.07:1 here, so black text is the safer pairing at 19.71:1. Because it is this light, Cornsilk works best as a page or card background with dark text over it.

The closest CSS named colors to Cornsilk, measured with CIEDE2000, are Beige (#F5F5DC), LightYellow (#FFFFE0), PapayaWhip (#FFEFD5). If Cornsilk is not quite right, those are the nearest keywords to try before reaching for a custom value.

HEX

#FFF8DC

RGB

rgb(255, 248, 220)

HSL

hsl(48, 100%, 93%)

HWB

hwb(48 86% 0%)

CMYK

cmyk(0%, 3%, 14%, 0%)

LAB

lab(97.58 -0.96 14.39)

LCH

lch(97.58 14.42 93.8)

OKLCH

oklch(97.73% 0.0373 95.44)

Is Cornsilk accessible?

WCAG asks for 4.5:1 between body text and its background. On #FFF8DC white text measures 1.07:1 and black text 19.71:1, so black clears it and white does not.

White text on Cornsilk

WCAG 2.2

1.07:1

APCA

Lc 0

Fails AA body text

Fails AAA body text

Fails AA large text

Black text on Cornsilk

WCAG 2.2

19.71:1

APCA

Lc 101

Passes AA body text

Passes AAA body text

Passes AA large text

Check Cornsilk against any other color in the contrast checker.

Tints and shades of Cornsilk

Cornsilk sits at 98% OKLCH lightness. Holding its hue and chroma and moving only that value carries it down to #080600, which keeps the family recognizable instead of letting it drift toward gray the way a plain HSL ramp does.

Shades, toward black

#C7C0A5

20% darker

#918B71

40% darker

#5F5941

60% darker

#312C15

80% darker

#080600

100% darker

Build a full accessible scale from #FFF8DC in the shade generator.

Colors that go with Cornsilk

Hues rotated around #FFF8DC in OKLCH, then pulled back into the sRGB gamut. Each swatch is labelled with the nearest CSS named color so you have a keyword to start from.

Complementary

Cornsilk sits at 95 degrees. Rotating it a half turn lands on 275 degrees, the hue directly opposite. It is the strongest pairing you can make without changing lightness, and the one most likely to vibrate if you use both at full chroma.

Analogous

The neighbors of Cornsilk at 65 and 125 degrees. They stay close enough to read as the same family, which is what you want for hover states, secondary surfaces and gradients.

Triadic

95, 215 and 335 degrees divide the wheel into thirds. Balanced enough to carry a whole palette without one color dominating the other two.

Split complementary

Instead of the complement at 275 degrees, this pair flanks it at 245 and 305. You keep most of the contrast of a complementary pairing while losing the harshness.

Explore more combinations around Cornsilk on the color wheel.

How Cornsilk looks with color blindness

The biggest shift is under tritanopia, where #FFF8DC reads as #FFF3F0, 11.9 CIEDE2000 units away. If Cornsilk is the only thing marking a state or a series, roughly one viewer in twelve will miss it.

Protanopia

#FFF6DB

Deuteranopia

#FFF9DD

Tritanopia

#FFF3F0

Achromatopsia

#F7F7F7

Colors similar to Cornsilk

The nearest CSS keywords to #FFF8DC, ranked by perceptual distance rather than by how close their hex digits happen to look.