#FEF28F

#fef28f ≈ Khaki

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

#fef28f is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 99.61% red, 94.9% green and 56.08% blue; printed in CMYK it uses 0% cyan, 4.72% magenta, 43.7% yellow and 0.39% black. Its hue angle is 53.51°, with 98.23% saturation and 77.84% 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 18.31:1 (WCAG AAA). The closest named color is Khaki (#f0e68c), ΔE 2.91.

Description generated from the measured properties of this color.

Conversions of #fef28f 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.8656

Readable text 1.15:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 18.31:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #efefef ≈ 0.003% of males
Achromatomaly #f5f0d0 ≈ 0.001% of males
Protanopia #ffec87 ≈ 1.01% of males
Deuteranopia #fff293 ≈ 1.27% of males
Tritanopia #ffe6da ≈ 0.0001% of males
Protanomaly #ffee8a ≈ 1.08% of males
Deuteranomaly #fff292 ≈ 4.63% of males
Tritanomaly #ffebc1 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-fef28f {
  color: #fef28f;
}
Background
.bg-fef28f {
  background-color: #fef28f;
  color: #000000;
}
Border
.border-fef28f {
  border: 2px solid #fef28f;
}
CSS variables
:root {
  --color-primary: #fef28f;
  --color-primary-rgb: 254 242 143;
  --color-primary-hsl: 54 98% 78%;
}
Gradient
.gradient-fef28f {
  background: linear-gradient(135deg, #fef28f, #d3fe8f);
}
Colored shadow
.shadow-fef28f {
  box-shadow: 0 8px 24px rgb(254 242 143 / 0.35);
}

Khaki
#fef28f  rgb(254, 242, 143)  hsl(54, 98%, 78%)  Khaki
#8f9bfe  rgb(143, 155, 254)  hsl(234, 98%, 78%)  Cornflower Blue
#8ffef2  rgb(143, 254, 242)  hsl(174, 98%, 78%)  Celeste
#f28ffe  rgb(242, 143, 254)  hsl(294, 98%, 78%)  Violet