#ecec8b ≈ Khaki
#ecec8b is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 92.55% red, 92.55% green and 54.51% blue; printed in CMYK it uses 0% cyan, 0% magenta, 41.1% yellow and 7.45% black. Its hue angle is 60°, with 71.85% saturation and 73.53% 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 16.94:1 (WCAG AAA). The closest named color is Khaki (#f0e68c), ΔE 2.88.
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.7969 |
Shades
#ecec8b mixed progressively with black.
Tints
#ecec8b mixed progressively with white.
Tones
#ecec8b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-ecec8b {
color: #ecec8b;
}
.bg-ecec8b {
background-color: #ecec8b;
color: #000000;
}
.border-ecec8b {
border: 2px solid #ecec8b;
}
:root {
--color-primary: #ecec8b;
--color-primary-rgb: 236 236 139;
--color-primary-hsl: 60 72% 74%;
}
.gradient-ecec8b {
background: linear-gradient(135deg, #ecec8b, #bcec8b);
}
.shadow-ecec8b {
box-shadow: 0 8px 24px rgb(236 236 139 / 0.35);
}
Khaki
#ecec8b rgb(236, 236, 139) hsl(60, 72%, 74%) Khaki
#8b8bec rgb(139, 139, 236) hsl(240, 72%, 74%) Medium Purple
#8becec rgb(139, 236, 236) hsl(180, 72%, 74%) Electric Blue
#ec8bec rgb(236, 139, 236) hsl(300, 72%, 74%) Violet