#f2ef7e ≈ Pastel Yellow
#f2ef7e 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 49.41% blue; printed in CMYK it uses 0% cyan, 1.24% magenta, 47.93% yellow and 5.1% black. Its hue angle is 58.45°, with 81.69% saturation and 72.16% 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.42:1 (WCAG AAA). The closest named color is Pastel Yellow (#fdfd96), ΔE 3.37.
Description generated from the measured properties of this color.
| 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 luminance | 0.8212 |
Shades
#f2ef7e mixed progressively with black.
Tints
#f2ef7e mixed progressively with white.
Tones
#f2ef7e mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-f2ef7e {
color: #f2ef7e;
}
.bg-f2ef7e {
background-color: #f2ef7e;
color: #000000;
}
.border-f2ef7e {
border: 2px solid #f2ef7e;
}
:root {
--color-primary: #f2ef7e;
--color-primary-rgb: 242 239 126;
--color-primary-hsl: 58 82% 72%;
}
.gradient-f2ef7e {
background: linear-gradient(135deg, #f2ef7e, #bbf27e);
}
.shadow-f2ef7e {
box-shadow: 0 8px 24px rgb(242 239 126 / 0.35);
}
Pastel Yellow
#f2ef7e rgb(242, 239, 126) hsl(58, 82%, 72%) Pastel Yellow
#7e81f2 rgb(126, 129, 242) hsl(238, 82%, 72%) Medium Slate Blue
#7ef2ef rgb(126, 242, 239) hsl(178, 82%, 72%) Electric Blue
#ef7ef2 rgb(239, 126, 242) hsl(298, 82%, 72%) Violet