#fef8d7 ≈ Cornsilk
#fef8d7 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 84.31% blue; printed in CMYK it uses 0% cyan, 2.36% magenta, 15.35% yellow and 0.39% black. Its hue angle is 50.77°, with 95.12% saturation and 91.96% 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.62:1 (WCAG AAA). The closest named color is Cornsilk (#fff8dc), ΔE 1.72.
Description generated from the measured properties of this color.
| 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 luminance | 0.9311 |
Shades
#fef8d7 mixed progressively with black.
Tints
#fef8d7 mixed progressively with white.
Tones
#fef8d7 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-fef8d7 {
color: #fef8d7;
}
.bg-fef8d7 {
background-color: #fef8d7;
color: #000000;
}
.border-fef8d7 {
border: 2px solid #fef8d7;
}
:root {
--color-primary: #fef8d7;
--color-primary-rgb: 254 248 215;
--color-primary-hsl: 51 95% 92%;
}
.gradient-fef8d7 {
background: linear-gradient(135deg, #fef8d7, #f0fed7);
}
.shadow-fef8d7 {
box-shadow: 0 8px 24px rgb(254 248 215 / 0.35);
}
Cornsilk
#fef8d7 rgb(254, 248, 215) hsl(51, 95%, 92%) Cornsilk
#d7ddfe rgb(215, 221, 254) hsl(231, 95%, 92%) Lavender
#d7fef8 rgb(215, 254, 248) hsl(171, 95%, 92%) Light Cyan
#f8d7fe rgb(248, 215, 254) hsl(291, 95%, 92%) Thistle