#ccb902 ≈ Old Gold
#ccb902 is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 80% red, 72.55% green and 0.78% blue; printed in CMYK it uses 0% cyan, 9.31% magenta, 99.02% yellow and 20% black. Its hue angle is 54.36°, 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 10.51:1 (WCAG AAA). The closest named color is Old Gold (#cfb53b), ΔE 4.05.
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.4754 |
Shades
#ccb902 mixed progressively with black.
Tints
#ccb902 mixed progressively with white.
Tones
#ccb902 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-ccb902 {
color: #ccb902;
}
.bg-ccb902 {
background-color: #ccb902;
color: #000000;
}
.border-ccb902 {
border: 2px solid #ccb902;
}
:root {
--color-primary: #ccb902;
--color-primary-rgb: 204 185 2;
--color-primary-hsl: 54 98% 40%;
}
.gradient-ccb902 {
background: linear-gradient(135deg, #ccb902, #7acc02);
}
.shadow-ccb902 {
box-shadow: 0 8px 24px rgb(204 185 2 / 0.35);
}
Old Gold
#ccb902 rgb(204, 185, 2) hsl(54, 98%, 40%) Old Gold
#0215cc rgb(2, 21, 204) hsl(234, 98%, 40%) Medium Blue
#02ccb9 rgb(2, 204, 185) hsl(174, 98%, 40%) Turquoise
#b902cc rgb(185, 2, 204) hsl(294, 98%, 40%) Dark Orchid