#f2ec7a ≈ Khaki
#f2ec7a is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 94.9% red, 92.55% green and 47.84% blue; printed in CMYK it uses 0% cyan, 2.48% magenta, 49.59% yellow and 5.1% black. Its hue angle is 57°, with 82.19% saturation and 71.37% 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 call-to-action buttons. Black text on this color reaches a contrast ratio of 17.05:1 (WCAG AAA). The closest named color is Khaki (#f0e68c), ΔE 3.6.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #ffff66 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.8027 |
Shades
#f2ec7a mixed progressively with black.
Tints
#f2ec7a mixed progressively with white.
Tones
#f2ec7a mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-f2ec7a {
color: #f2ec7a;
}
.bg-f2ec7a {
background-color: #f2ec7a;
color: #000000;
}
.border-f2ec7a {
border: 2px solid #f2ec7a;
}
:root {
--color-primary: #f2ec7a;
--color-primary-rgb: 242 236 122;
--color-primary-hsl: 57 82% 71%;
}
.gradient-f2ec7a {
background: linear-gradient(135deg, #f2ec7a, #bcf27a);
}
.shadow-f2ec7a {
box-shadow: 0 8px 24px rgb(242 236 122 / 0.35);
}
Khaki
#f2ec7a rgb(242, 236, 122) hsl(57, 82%, 71%) Khaki
#7a80f2 rgb(122, 128, 242) hsl(237, 82%, 71%) Medium Slate Blue
#7af2ec rgb(122, 242, 236) hsl(177, 82%, 71%) Electric Blue
#ec7af2 rgb(236, 122, 242) hsl(297, 82%, 71%) Violet