#dcd42f ≈ Citrine
#dcd42f is a color from the yellow family, with medium lightness and strong saturation. In the RGB model it is made of 86.27% red, 83.14% green and 18.43% blue; printed in CMYK it uses 0% cyan, 3.64% magenta, 78.64% yellow and 13.73% black. Its hue angle is 57.23°, with 71.19% saturation and 52.35% 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 brand accents. Black text on this color reaches a contrast ratio of 13.5:1 (WCAG AAA). The closest named color is Citrine (#e4d00a), ΔE 3.35.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cccc33 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.6251 |
Shades
#dcd42f mixed progressively with black.
Tints
#dcd42f mixed progressively with white.
Tones
#dcd42f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-dcd42f {
color: #dcd42f;
}
.bg-dcd42f {
background-color: #dcd42f;
color: #000000;
}
.border-dcd42f {
border: 2px solid #dcd42f;
}
:root {
--color-primary: #dcd42f;
--color-primary-rgb: 220 212 47;
--color-primary-hsl: 57 71% 52%;
}
.gradient-dcd42f {
background: linear-gradient(135deg, #dcd42f, #8ddc2f);
}
.shadow-dcd42f {
box-shadow: 0 8px 24px rgb(220 212 47 / 0.35);
}
Citrine
#dcd42f rgb(220, 212, 47) hsl(57, 71%, 52%) Citrine
#2f37dc rgb(47, 55, 220) hsl(237, 71%, 52%) Persian Blue
#2fdcd4 rgb(47, 220, 212) hsl(177, 71%, 52%) Turquoise
#d42fdc rgb(212, 47, 220) hsl(297, 71%, 52%) Medium Orchid