#ccc302 ≈ Citrine
#ccc302 is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 80% red, 76.47% green and 0.78% blue; printed in CMYK it uses 0% cyan, 4.41% magenta, 99.02% yellow and 20% black. Its hue angle is 57.33°, with 98.06% saturation and 40.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 call-to-action buttons. Black text on this color reaches a contrast ratio of 11.37:1 (WCAG AAA). The closest named color is Citrine (#e4d00a), ΔE 4.57.
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.5187 |
Shades
#ccc302 mixed progressively with black.
Tints
#ccc302 mixed progressively with white.
Tones
#ccc302 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-ccc302 {
color: #ccc302;
}
.bg-ccc302 {
background-color: #ccc302;
color: #000000;
}
.border-ccc302 {
border: 2px solid #ccc302;
}
:root {
--color-primary: #ccc302;
--color-primary-rgb: 204 195 2;
--color-primary-hsl: 57 98% 40%;
}
.gradient-ccc302 {
background: linear-gradient(135deg, #ccc302, #70cc02);
}
.shadow-ccc302 {
box-shadow: 0 8px 24px rgb(204 195 2 / 0.35);
}
Citrine
#ccc302 rgb(204, 195, 2) hsl(57, 98%, 40%) Citrine
#020bcc rgb(2, 11, 204) hsl(237, 98%, 40%) Medium Blue
#02ccc3 rgb(2, 204, 195) hsl(177, 98%, 40%) Medium Turquoise
#c302cc rgb(195, 2, 204) hsl(297, 98%, 40%) Electric Purple