#ECEC8F

#ecec8f ≈ Khaki

  • yellow
  • Lightness: high
  • Saturation: moderate
  • Warm

#ecec8f 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 56.08% blue; printed in CMYK it uses 0% cyan, 0% magenta, 39.41% yellow and 7.45% black. Its hue angle is 60°, with 70.99% saturation and 74.31% 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.96:1 (WCAG AAA). The closest named color is Khaki (#f0e68c), ΔE 2.79.

Description generated from the measured properties of this color.

Conversions of #ecec8f into other color spaces
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 luminance0.7981

Readable text 1.24:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 16.96:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #e7e7e7 ≈ 0.003% of males
Achromatomaly #e9e9ca ≈ 0.001% of males
Protanopia #fae588 ≈ 1.01% of males
Deuteranopia #fbe993 ≈ 1.27% of males
Tritanopia #f8e1d5 ≈ 0.0001% of males
Protanomaly #f4e88b ≈ 1.08% of males
Deuteranomaly #f5ea91 ≈ 4.63% of males
Tritanomaly #f3e6bd ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ecec8f {
  color: #ecec8f;
}
Background
.bg-ecec8f {
  background-color: #ecec8f;
  color: #000000;
}
Border
.border-ecec8f {
  border: 2px solid #ecec8f;
}
CSS variables
:root {
  --color-primary: #ecec8f;
  --color-primary-rgb: 236 236 143;
  --color-primary-hsl: 60 71% 74%;
}
Gradient
.gradient-ecec8f {
  background: linear-gradient(135deg, #ecec8f, #bdec8f);
}
Colored shadow
.shadow-ecec8f {
  box-shadow: 0 8px 24px rgb(236 236 143 / 0.35);
}

Khaki
#ecec8f  rgb(236, 236, 143)  hsl(60, 71%, 74%)  Khaki
#8f8fec  rgb(143, 143, 236)  hsl(240, 71%, 74%)  Cornflower Blue
#8fecec  rgb(143, 236, 236)  hsl(180, 71%, 74%)  Electric Blue
#ec8fec  rgb(236, 143, 236)  hsl(300, 71%, 74%)  Violet