#FEF8D5

#fef8d5 ≈ Cornsilk

  • yellow
  • Lightness: very high
  • Saturation: muted
  • Warm

#fef8d5 is a color from the yellow family, with very high lightness and muted saturation. In the RGB model it is made of 99.61% red, 97.25% green and 83.53% blue; printed in CMYK it uses 0% cyan, 2.36% magenta, 16.14% yellow and 0.39% black. Its hue angle is 51.22°, with 95.35% saturation and 91.57% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and soft pastel palettes. Black text on this color reaches a contrast ratio of 19.6:1 (WCAG AAA). The closest named color is Cornsilk (#fff8dc), ΔE 2.29.

Description generated from the measured properties of this color.

Conversions of #fef8d5 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#ffffcc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.9301

Readable text 1.07:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 19.6:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #f7f7f7 ≈ 0.003% of males
Achromatomaly #faf7ea ≈ 0.001% of males
Protanopia #fff6d3 ≈ 1.01% of males
Deuteranopia #fff8d6 ≈ 1.27% of males
Tritanopia #fff3ee ≈ 0.0001% of males
Protanomaly #fff7d4 ≈ 1.08% of males
Deuteranomaly #fff8d6 ≈ 4.63% of males
Tritanomaly #fff5e5 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-fef8d5 {
  color: #fef8d5;
}
Background
.bg-fef8d5 {
  background-color: #fef8d5;
  color: #000000;
}
Border
.border-fef8d5 {
  border: 2px solid #fef8d5;
}
CSS variables
:root {
  --color-primary: #fef8d5;
  --color-primary-rgb: 254 248 213;
  --color-primary-hsl: 51 95% 92%;
}
Gradient
.gradient-fef8d5 {
  background: linear-gradient(135deg, #fef8d5, #f0fed5);
}
Colored shadow
.shadow-fef8d5 {
  box-shadow: 0 8px 24px rgb(254 248 213 / 0.35);
}

Cornsilk
#fef8d5  rgb(254, 248, 213)  hsl(51, 95%, 92%)  Cornsilk
#d5dbfe  rgb(213, 219, 254)  hsl(231, 95%, 92%)  Periwinkle
#d5fef8  rgb(213, 254, 248)  hsl(171, 95%, 92%)  Light Cyan
#f8d5fe  rgb(248, 213, 254)  hsl(291, 95%, 92%)  Thistle