#d8a40c ≈ Goldenrod
#d8a40c is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 84.71% red, 64.31% green and 4.71% blue; printed in CMYK it uses 0% cyan, 24.07% magenta, 94.44% yellow and 15.29% black. Its hue angle is 44.71°, with 89.47% saturation and 44.71% 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 9.24:1 (WCAG AAA). The closest named color is Goldenrod (#daa520), ΔE 1.13.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc9900 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.4118 |
Shades
#d8a40c mixed progressively with black.
Tints
#d8a40c mixed progressively with white.
Tones
#d8a40c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d8a40c {
color: #d8a40c;
}
.bg-d8a40c {
background-color: #d8a40c;
color: #000000;
}
.border-d8a40c {
border: 2px solid #d8a40c;
}
:root {
--color-primary: #d8a40c;
--color-primary-rgb: 216 164 12;
--color-primary-hsl: 45 89% 45%;
}
.gradient-d8a40c {
background: linear-gradient(135deg, #d8a40c, #a6d80c);
}
.shadow-d8a40c {
box-shadow: 0 8px 24px rgb(216 164 12 / 0.35);
}
Goldenrod
#d8a40c rgb(216, 164, 12) hsl(45, 89%, 45%) Goldenrod
#0c40d8 rgb(12, 64, 216) hsl(225, 89%, 45%) Persian Blue
#0cd8a4 rgb(12, 216, 164) hsl(165, 89%, 45%) Caribbean Green
#a40cd8 rgb(164, 12, 216) hsl(285, 89%, 45%) Dark Orchid