#8a7d1f ≈ Olive
#8a7d1f is a color from the yellow family, with low lightness and moderate saturation. In the RGB model it is made of 54.12% red, 49.02% green and 12.16% blue; printed in CMYK it uses 0% cyan, 9.42% magenta, 77.54% yellow and 45.88% black. Its hue angle is 52.71°, with 63.31% saturation and 33.14% 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 corporate identities. Black text on this color reaches a contrast ratio of 5.03:1 (WCAG AA). The closest named color is Olive (#808000), ΔE 4.42.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #996633 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.2017 |
Shades
#8a7d1f mixed progressively with black.
Tints
#8a7d1f mixed progressively with white.
Tones
#8a7d1f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-8a7d1f {
color: #8a7d1f;
}
.bg-8a7d1f {
background-color: #8a7d1f;
color: #000000;
}
.border-8a7d1f {
border: 2px solid #8a7d1f;
}
:root {
--color-primary: #8a7d1f;
--color-primary-rgb: 138 125 31;
--color-primary-hsl: 53 63% 33%;
}
.gradient-8a7d1f {
background: linear-gradient(135deg, #8a7d1f, #628a1f);
}
.shadow-8a7d1f {
box-shadow: 0 8px 24px rgb(138 125 31 / 0.35);
}
Olive
#8a7d1f rgb(138, 125, 31) hsl(53, 63%, 33%) Olive
#1f2c8a rgb(31, 44, 138) hsl(233, 63%, 33%) Imperial Blue
#1f8a7d rgb(31, 138, 125) hsl(173, 63%, 33%) Dark Cyan
#7d1f8a rgb(125, 31, 138) hsl(293, 63%, 33%) Dark Magenta