#d8d98c ≈ Khaki
#d8d98c is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 84.71% red, 85.1% green and 54.9% blue; printed in CMYK it uses 0.46% cyan, 0% magenta, 35.48% yellow and 14.9% black. Its hue angle is 60.78°, with 50.33% saturation and 70% 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 brand accents. Black text on this color reaches a contrast ratio of 14.22:1 (WCAG AAA). The closest named color is Khaki (#f0e68c), ΔE 4.98.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cccc99 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.6612 |
Shades
#d8d98c mixed progressively with black.
Tints
#d8d98c mixed progressively with white.
Tones
#d8d98c mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d8d98c {
color: #d8d98c;
}
.bg-d8d98c {
background-color: #d8d98c;
color: #000000;
}
.border-d8d98c {
border: 2px solid #d8d98c;
}
:root {
--color-primary: #d8d98c;
--color-primary-rgb: 216 217 140;
--color-primary-hsl: 61 50% 70%;
}
.gradient-d8d98c {
background: linear-gradient(135deg, #d8d98c, #b1d98c);
}
.shadow-d8d98c {
box-shadow: 0 8px 24px rgb(216 217 140 / 0.35);
}
Khaki
#d8d98c rgb(216, 217, 140) hsl(61, 50%, 70%) Khaki
#8d8cd9 rgb(141, 140, 217) hsl(241, 50%, 70%) Medium Purple
#8cd8d9 rgb(140, 216, 217) hsl(181, 50%, 70%) Pale Turquoise
#d98cd8 rgb(217, 140, 216) hsl(301, 50%, 70%) Plum