cornsilk

#FFF8DC · CSS color name

cornsilk is the CSS color name for #fff8dc: RGB(255, 248, 220), HSL(48°, 100%, 93%), CMYK(0%, 3%, 14%, 0%). Contrast is 1.07:1 on white and 19.71:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#fff8dc
CSS color namecornsilk
RGBrgb(255 248 220)
RGB (legacy)rgb(255, 248, 220)
RGB %rgb(100% 97% 86%)
HSLhsl(48 100% 93%)
HSV / HSBhsv(48, 14%, 100%)
HWBhwb(48 86% 0%)
CMYKcmyk(0%, 3%, 14%, 0%)
CIELAB (D50)lab(97.58 -0.96 14.39)
LCHlch(97.58 14.42 93.8)
OKLaboklab(0.9773 -0.0035 0.0371)
OKLCHoklch(0.9773 0.0373 95.44)
Decimal16775388

Properties

Color ToneYellow, Gold
Closest named colorcornsilk ΔE 0
Closest web-safe color#ffffcc
Hue48°
Saturation (HSL / HSV)100% / 14%
Lightness (HSL)93%
Brightness or Value (HSV)100%
Luminance (Rec.601 / Rec.709)97% / 97%
Relative luminance (WCAG)0.9356
Red / Green / Blue255 / 248 / 220

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.07:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
19.71:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 0 / -103 · As background with white / black text: Lc 0 / 101.6

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-cornsilk: #fff8dc;
  --color-cornsilk-oklch: oklch(97.73% 0.0373 95.44);
}
.text { color: var(--color-cornsilk); }
.background { background-color: var(--color-cornsilk); }
.border { border: 1px solid rgb(255 248 220 / 50%); }
/* Tailwind CSS */
<div class="bg-[#fff8dc] text-[#fff8dc] border-[#fff8dc]">