#d2cc2f ≈ Citrine
#d2cc2f is a color from the yellow family, with medium lightness and strong saturation. In the RGB model it is made of 82.35% red, 80% green and 18.43% blue; printed in CMYK it uses 0% cyan, 2.86% magenta, 77.62% yellow and 17.65% black. Its hue angle is 57.79°, with 64.43% saturation and 50.39% 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 12.42:1 (WCAG AAA). The closest named color is Citrine (#e4d00a), ΔE 4.34.
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.5709 |
Shades
#d2cc2f mixed progressively with black.
Tints
#d2cc2f mixed progressively with white.
Tones
#d2cc2f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d2cc2f {
color: #d2cc2f;
}
.bg-d2cc2f {
background-color: #d2cc2f;
color: #000000;
}
.border-d2cc2f {
border: 2px solid #d2cc2f;
}
:root {
--color-primary: #d2cc2f;
--color-primary-rgb: 210 204 47;
--color-primary-hsl: 58 64% 50%;
}
.gradient-d2cc2f {
background: linear-gradient(135deg, #d2cc2f, #86d22f);
}
.shadow-d2cc2f {
box-shadow: 0 8px 24px rgb(210 204 47 / 0.35);
}
Citrine
#d2cc2f rgb(210, 204, 47) hsl(58, 64%, 50%) Citrine
#2f35d2 rgb(47, 53, 210) hsl(238, 64%, 50%) Persian Blue
#2fd2cc rgb(47, 210, 204) hsl(178, 64%, 50%) Medium Turquoise
#cc2fd2 rgb(204, 47, 210) hsl(298, 64%, 50%) Medium Orchid