Cornsilk#FFF8DC

#FFF8DC is a very light, muted yellow. Relative luminance 0.936; OKLCH L 97.7% C 0.037 H 95.4°. Best body text is #000000 at 19.71:1 contrast (WCAG AA passes).

Cornsilk — editorial page

Color values

HEX#FFF8DC
RGBrgb(255, 248, 220)
HSLhsl(48, 100%, 93%)
HSVhsv(48, 14%, 100%)
CMYKcmyk(0%, 2.7%, 13.7%, 0%)
CIE-LABlab(97.46, -2.22, 14.29)
CIE-LCHlch(97.46, 14.46, 98.82°)
OKLaboklab(97.73% -0.0035 0.0371)
OKLCHoklch(97.73% 0.037 95.4)
XYZxyz(87.7246, 93.5631, 81.1344)
Luminance0.9356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF8DC #DCE3FF
analogous
#FFE6DC #FFF8DC #F4FFDC
triadic
#FFF8DC #DCFFF8 #F8DCFF
tetradic
#FFF8DC #DCFFE6 #DCE3FF #FFDCF4
square
#FFF8DC #DCFFE6 #DCE3FF #FFDCF4
split-complementary
#FFF8DC #DCF4FF #E6DCFF
monochromatic
#FFE062 #FFEC9F #FFF8DC #FFF9E0 #FFF9E0

Accessibility & contrast

On white

1.07
#FFF8DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.71
#FFF8DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF8DC
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF8DC#FFFFFF#000000##000000
##FFF8DC1.001.0719.7119.71
#FFFFFF1.071.0021.0021.00
#00000019.7121.001.001.00
##00000019.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEF6DA
Deuteranopia (green-blind)
#FFF9DD
Tritanopia (blue-blind)
#FFF4F0
Achromatopsia (no color)
#F8F8F8

Design tokens & code

CSS
--color: #fff8dc;
/* rgb */ color: rgb(255, 248, 220);
/* oklch */ color: oklch(97.7% 0.037 95.4);
Tailwind
colors: {
  custom: {
    50: '#fffae6',
    500: '#fff8dc',
    950: '#000000',
  },
}
SCSS
$custom: #fff8dc;
$custom-light: #fffae6;
$custom-dark: #000000;
JSON
{
  "hex": "#fff8dc",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 220
  },
  "hsl": {
    "h": 48,
    "s": 100,
    "l": 93.137
  },
  "oklch": {
    "l": 0.9773,
    "c": 0.03726,
    "h": 95.4
  },
  "luminance": 0.93562
}

Semantic roles & 50–950 ramp

primary
#FFF8DC
secondary
#93A5EC
accent
#2EE600
background
#FFFFFE
surface
#FFFFFC
border
#D7D7D5
text
#181716
muted
#868584

Preview Lab

Preview with #FFF8DC

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#FFF8DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva