#fef304 ≈ Cadmium Yellow
#fef304 is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 99.61% red, 95.29% green and 1.57% blue; printed in CMYK it uses 0% cyan, 4.33% magenta, 98.43% yellow and 0.39% black. Its hue angle is 57.36°, with 99.21% saturation and 50.59% 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.04:1 (WCAG AAA). The closest named color is Cadmium Yellow (#fff600), ΔE 0.7.
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.8518 |
Shades
#fef304 mixed progressively with black.
Tints
#fef304 mixed progressively with white.
Tones
#fef304 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-fef304 {
color: #fef304;
}
.bg-fef304 {
background-color: #fef304;
color: #000000;
}
.border-fef304 {
border: 2px solid #fef304;
}
:root {
--color-primary: #fef304;
--color-primary-rgb: 254 243 4;
--color-primary-hsl: 57 99% 51%;
}
.gradient-fef304 {
background: linear-gradient(135deg, #fef304, #8cfe04);
}
.shadow-fef304 {
box-shadow: 0 8px 24px rgb(254 243 4 / 0.35);
}
Cadmium Yellow
#fef304 rgb(254, 243, 4) hsl(57, 99%, 51%) Cadmium Yellow
#040ffe rgb(4, 15, 254) hsl(237, 99%, 51%) Blue
#04fef3 rgb(4, 254, 243) hsl(177, 99%, 51%) Turquoise Blue
#f304fe rgb(243, 4, 254) hsl(297, 99%, 51%) Fuchsia