#cdc842 ≈ Straw
#cdc842 is a color from the yellow family, with medium lightness and strong saturation. In the RGB model it is made of 80.39% red, 78.43% green and 25.88% blue; printed in CMYK it uses 0% cyan, 2.44% magenta, 67.8% yellow and 19.61% black. Its hue angle is 57.84°, with 58.16% saturation and 53.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 brand accents. Black text on this color reaches a contrast ratio of 11.94:1 (WCAG AAA). The closest named color is Straw (#e4d96f), ΔE 5.72.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cccc33 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.5468 |
Shades
#cdc842 mixed progressively with black.
Tints
#cdc842 mixed progressively with white.
Tones
#cdc842 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-cdc842 {
color: #cdc842;
}
.bg-cdc842 {
background-color: #cdc842;
color: #000000;
}
.border-cdc842 {
border: 2px solid #cdc842;
}
:root {
--color-primary: #cdc842;
--color-primary-rgb: 205 200 66;
--color-primary-hsl: 58 58% 53%;
}
.gradient-cdc842 {
background: linear-gradient(135deg, #cdc842, #8dcd42);
}
.shadow-cdc842 {
box-shadow: 0 8px 24px rgb(205 200 66 / 0.35);
}
Straw
#cdc842 rgb(205, 200, 66) hsl(58, 58%, 53%) Straw
#4247cd rgb(66, 71, 205) hsl(238, 58%, 53%) Iris
#42cdc8 rgb(66, 205, 200) hsl(178, 58%, 53%) Medium Turquoise
#c842cd rgb(200, 66, 205) hsl(298, 58%, 53%) Medium Orchid