#f2ef8b ≈ Khaki
#f2ef8b is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 94.9% red, 93.73% green and 54.51% blue; printed in CMYK it uses 0% cyan, 1.24% magenta, 42.56% yellow and 5.1% black. Its hue angle is 58.25°, with 79.84% saturation and 74.71% 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 brand accents. Black text on this color reaches a contrast ratio of 17.49:1 (WCAG AAA). The closest named color is Khaki (#f0e68c), ΔE 2.77.
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.8247 |
Shades
#f2ef8b mixed progressively with black.
Tints
#f2ef8b mixed progressively with white.
Tones
#f2ef8b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-f2ef8b {
color: #f2ef8b;
}
.bg-f2ef8b {
background-color: #f2ef8b;
color: #000000;
}
.border-f2ef8b {
border: 2px solid #f2ef8b;
}
:root {
--color-primary: #f2ef8b;
--color-primary-rgb: 242 239 139;
--color-primary-hsl: 58 80% 75%;
}
.gradient-f2ef8b {
background: linear-gradient(135deg, #f2ef8b, #c2f28b);
}
.shadow-f2ef8b {
box-shadow: 0 8px 24px rgb(242 239 139 / 0.35);
}
Khaki
#f2ef8b rgb(242, 239, 139) hsl(58, 80%, 75%) Khaki
#8b8ef2 rgb(139, 142, 242) hsl(238, 80%, 75%) Cornflower Blue
#8bf2ef rgb(139, 242, 239) hsl(178, 80%, 75%) Electric Blue
#ef8bf2 rgb(239, 139, 242) hsl(298, 80%, 75%) Violet