#ffef8c ≈ Khaki
#ffef8c is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 100% red, 93.73% green and 54.9% blue; printed in CMYK it uses 0% cyan, 6.27% magenta, 45.1% yellow and 0% black. Its hue angle is 51.65°, with 100% saturation and 77.45% 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 17.98:1 (WCAG AAA). The closest named color is Khaki (#f0e68c), ΔE 2.92.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #ffff99 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.8489 |
Shades
#ffef8c mixed progressively with black.
Tints
#ffef8c mixed progressively with white.
Tones
#ffef8c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-ffef8c {
color: #ffef8c;
}
.bg-ffef8c {
background-color: #ffef8c;
color: #000000;
}
.border-ffef8c {
border: 2px solid #ffef8c;
}
:root {
--color-primary: #ffef8c;
--color-primary-rgb: 255 239 140;
--color-primary-hsl: 52 100% 77%;
}
.gradient-ffef8c {
background: linear-gradient(135deg, #ffef8c, #d6ff8c);
}
.shadow-ffef8c {
box-shadow: 0 8px 24px rgb(255 239 140 / 0.35);
}
Khaki
#ffef8c rgb(255, 239, 140) hsl(52, 100%, 77%) Khaki
#8c9cff rgb(140, 156, 255) hsl(232, 100%, 77%) Cornflower Blue
#8cffef rgb(140, 255, 239) hsl(172, 100%, 77%) Turquoise Blue
#ef8cff rgb(239, 140, 255) hsl(292, 100%, 77%) Violet