#cdc31c ≈ Citrine
#cdc31c is a color from the yellow family, with medium lightness and strong saturation. In the RGB model it is made of 80.39% red, 76.47% green and 10.98% blue; printed in CMYK it uses 0% cyan, 4.88% magenta, 86.34% yellow and 19.61% black. Its hue angle is 56.61°, with 75.97% saturation and 45.69% 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 11.42:1 (WCAG AAA). The closest named color is Citrine (#e4d00a), ΔE 4.62.
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.5209 |
Shades
#cdc31c mixed progressively with black.
Tints
#cdc31c mixed progressively with white.
Tones
#cdc31c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-cdc31c {
color: #cdc31c;
}
.bg-cdc31c {
background-color: #cdc31c;
color: #000000;
}
.border-cdc31c {
border: 2px solid #cdc31c;
}
:root {
--color-primary: #cdc31c;
--color-primary-rgb: 205 195 28;
--color-primary-hsl: 57 76% 46%;
}
.gradient-cdc31c {
background: linear-gradient(135deg, #cdc31c, #7fcd1c);
}
.shadow-cdc31c {
box-shadow: 0 8px 24px rgb(205 195 28 / 0.35);
}
Citrine
#cdc31c rgb(205, 195, 28) hsl(57, 76%, 46%) Citrine
#1c26cd rgb(28, 38, 205) hsl(237, 76%, 46%) Medium Blue
#1ccdc3 rgb(28, 205, 195) hsl(177, 76%, 46%) Medium Turquoise
#c31ccd rgb(195, 28, 205) hsl(297, 76%, 46%) Electric Purple