#f2fa0c ≈ Daffodil
#f2fa0c is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 94.9% red, 98.04% green and 4.71% blue; printed in CMYK it uses 3.2% cyan, 0% magenta, 95.2% yellow and 1.96% black. Its hue angle is 62.02°, with 95.97% saturation and 51.37% 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 18.46:1 (WCAG AAA). The closest named color is Daffodil (#ffff31), ΔE 2.06.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #ffff00 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.8728 |
Shades
#f2fa0c mixed progressively with black.
Tints
#f2fa0c mixed progressively with white.
Tones
#f2fa0c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-f2fa0c {
color: #f2fa0c;
}
.bg-f2fa0c {
background-color: #f2fa0c;
color: #000000;
}
.border-f2fa0c {
border: 2px solid #f2fa0c;
}
:root {
--color-primary: #f2fa0c;
--color-primary-rgb: 242 250 12;
--color-primary-hsl: 62 96% 51%;
}
.gradient-f2fa0c {
background: linear-gradient(135deg, #f2fa0c, #7bfa0c);
}
.shadow-f2fa0c {
box-shadow: 0 8px 24px rgb(242 250 12 / 0.35);
}
Daffodil
#f2fa0c rgb(242, 250, 12) hsl(62, 96%, 51%) Daffodil
#140cfa rgb(20, 12, 250) hsl(242, 96%, 51%) Blue
#0cf2fa rgb(12, 242, 250) hsl(182, 96%, 51%) Aqua
#fa0cf2 rgb(250, 12, 242) hsl(302, 96%, 51%) Fuchsia