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).
Color values
| HEX | #FFF8DC |
|---|---|
| RGB | rgb(255, 248, 220) |
| HSL | hsl(48, 100%, 93%) |
| HSV | hsv(48, 14%, 100%) |
| CMYK | cmyk(0%, 2.7%, 13.7%, 0%) |
| CIE-LAB | lab(97.46, -2.22, 14.29) |
| CIE-LCH | lch(97.46, 14.46, 98.82°) |
| OKLab | oklab(97.73% -0.0035 0.0371) |
| OKLCH | oklch(97.73% 0.037 95.4) |
| XYZ | xyz(87.7246, 93.5631, 81.1344) |
| Luminance | 0.9356 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Cornsilk
#FFF8DC
ΔE00 0.00
Beige
#F5F5DC
ΔE00 3.11
Off White (survey)
#FFFFE4
ΔE00 3.16
Lightyellow
#FFFFE0
ΔE00 3.42
Eggshell
#F0EAD6
ΔE00 3.87
Pale
#FFF9D0
ΔE00 3.91
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 |
|---|---|---|---|---|
| ##FFF8DC | 1.00 | 1.07 | 19.71 | 19.71 |
| #FFFFFF | 1.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 19.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 19.71 | 21.00 | 1.00 | 1.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