#cdc40c ≈ Citrine
#cdc40c is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 80.39% red, 76.86% green and 4.71% blue; printed in CMYK it uses 0% cyan, 4.39% magenta, 94.15% yellow and 19.61% black. Its hue angle is 57.2°, with 88.94% saturation and 42.55% 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 11.5:1 (WCAG AAA). The closest named color is Citrine (#e4d00a), ΔE 4.41.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cccc00 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.5249 |
Shades
#cdc40c mixed progressively with black.
Tints
#cdc40c mixed progressively with white.
Tones
#cdc40c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-cdc40c {
color: #cdc40c;
}
.bg-cdc40c {
background-color: #cdc40c;
color: #000000;
}
.border-cdc40c {
border: 2px solid #cdc40c;
}
:root {
--color-primary: #cdc40c;
--color-primary-rgb: 205 196 12;
--color-primary-hsl: 57 89% 43%;
}
.gradient-cdc40c {
background: linear-gradient(135deg, #cdc40c, #76cd0c);
}
.shadow-cdc40c {
box-shadow: 0 8px 24px rgb(205 196 12 / 0.35);
}
Citrine
#cdc40c rgb(205, 196, 12) hsl(57, 89%, 43%) Citrine
#0c15cd rgb(12, 21, 205) hsl(237, 89%, 43%) Medium Blue
#0ccdc4 rgb(12, 205, 196) hsl(177, 89%, 43%) Medium Turquoise
#c40ccd rgb(196, 12, 205) hsl(297, 89%, 43%) Electric Purple