#FEF796

#fef796 ≈ Pastel Yellow

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

#fef796 is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 99.61% red, 96.86% green and 58.82% blue; printed in CMYK it uses 0% cyan, 2.76% magenta, 40.94% yellow and 0.39% black. Its hue angle is 55.96°, with 98.11% saturation and 79.22% 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.96:1 (WCAG AAA). The closest named color is Pastel Yellow (#fdfd96), ΔE 2.09.

Description generated from the measured properties of this color.

Conversions of #fef796 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.8979

Readable text 1.11:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 18.96:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #f3f3f3 ≈ 0.003% of males
Achromatomaly #f8f5d4 ≈ 0.001% of males
Protanopia #fff08e ≈ 1.01% of males
Deuteranopia #fff69a ≈ 1.27% of males
Tritanopia #ffebdf ≈ 0.0001% of males
Protanomaly #fff392 ≈ 1.08% of males
Deuteranomaly #fff698 ≈ 4.63% of males
Tritanomaly #fff0c6 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-fef796 {
  color: #fef796;
}
Background
.bg-fef796 {
  background-color: #fef796;
  color: #000000;
}
Border
.border-fef796 {
  border: 2px solid #fef796;
}
CSS variables
:root {
  --color-primary: #fef796;
  --color-primary-rgb: 254 247 150;
  --color-primary-hsl: 56 98% 79%;
}
Gradient
.gradient-fef796 {
  background: linear-gradient(135deg, #fef796, #d1fe96);
}
Colored shadow
.shadow-fef796 {
  box-shadow: 0 8px 24px rgb(254 247 150 / 0.35);
}

Pastel Yellow
#fef796  rgb(254, 247, 150)  hsl(56, 98%, 79%)  Pastel Yellow
#969dfe  rgb(150, 157, 254)  hsl(236, 98%, 79%)  Cornflower Blue
#96fef7  rgb(150, 254, 247)  hsl(176, 98%, 79%)  Celeste
#f796fe  rgb(247, 150, 254)  hsl(296, 98%, 79%)  Violet