#F2EF7C

#f2ef7c ≈ Pastel Yellow

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

#f2ef7c is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 94.9% red, 93.73% green and 48.63% blue; printed in CMYK it uses 0% cyan, 1.24% magenta, 48.76% yellow and 5.1% black. Its hue angle is 58.47°, with 81.94% saturation and 71.76% 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.41:1 (WCAG AAA). The closest named color is Pastel Yellow (#fdfd96), ΔE 3.51.

Description generated from the measured properties of this color.

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

Readable text 1.21:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 17.41:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #eaeaea ≈ 0.003% of males
Achromatomaly #edecc7 ≈ 0.001% of males
Protanopia #ffe772 ≈ 1.01% of males
Deuteranopia #ffec82 ≈ 1.27% of males
Tritanopia #ffe2d5 ≈ 0.0001% of males
Protanomaly #faea76 ≈ 1.08% of males
Deuteranomaly #fbed7f ≈ 4.63% of males
Tritanomaly #fbe8b8 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-f2ef7c {
  color: #f2ef7c;
}
Background
.bg-f2ef7c {
  background-color: #f2ef7c;
  color: #000000;
}
Border
.border-f2ef7c {
  border: 2px solid #f2ef7c;
}
CSS variables
:root {
  --color-primary: #f2ef7c;
  --color-primary-rgb: 242 239 124;
  --color-primary-hsl: 58 82% 72%;
}
Gradient
.gradient-f2ef7c {
  background: linear-gradient(135deg, #f2ef7c, #baf27c);
}
Colored shadow
.shadow-f2ef7c {
  box-shadow: 0 8px 24px rgb(242 239 124 / 0.35);
}

Pastel Yellow
#f2ef7c  rgb(242, 239, 124)  hsl(58, 82%, 72%)  Pastel Yellow
#7c7ff2  rgb(124, 127, 242)  hsl(238, 82%, 72%)  Medium Slate Blue
#7cf2ef  rgb(124, 242, 239)  hsl(178, 82%, 72%)  Electric Blue
#ef7cf2  rgb(239, 124, 242)  hsl(298, 82%, 72%)  Violet