#d2cc7b ≈ Straw
#d2cc7b is a color from the yellow family, with high lightness and moderate saturation. In the RGB model it is made of 82.35% red, 80% green and 48.24% blue; printed in CMYK it uses 0% cyan, 2.86% magenta, 41.43% yellow and 17.65% black. Its hue angle is 55.86°, with 49.15% saturation and 65.29% 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 12.66:1 (WCAG AAA). The closest named color is Straw (#e4d96f), ΔE 5.05.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cccc66 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.5832 |
Shades
#d2cc7b mixed progressively with black.
Tints
#d2cc7b mixed progressively with white.
Tones
#d2cc7b mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-d2cc7b {
color: #d2cc7b;
}
.bg-d2cc7b {
background-color: #d2cc7b;
color: #000000;
}
.border-d2cc7b {
border: 2px solid #d2cc7b;
}
:root {
--color-primary: #d2cc7b;
--color-primary-rgb: 210 204 123;
--color-primary-hsl: 56 49% 65%;
}
.gradient-d2cc7b {
background: linear-gradient(135deg, #d2cc7b, #acd27b);
}
.shadow-d2cc7b {
box-shadow: 0 8px 24px rgb(210 204 123 / 0.35);
}
Straw
#d2cc7b rgb(210, 204, 123) hsl(56, 49%, 65%) Straw
#7b81d2 rgb(123, 129, 210) hsl(236, 49%, 65%) Glaucous
#7bd2cc rgb(123, 210, 204) hsl(176, 49%, 65%) Medium Turquoise
#cc7bd2 rgb(204, 123, 210) hsl(296, 49%, 65%) Orchid