#D8C42E color
The hex color #D8C42E is a moderate yellow.
In the RGB color model it is made of 84.7% red, 76.9% green and 18% blue (216, 196, 46).
Its hue angle is 53°, with 69% saturation and 51% lightness. For print, the CMYK equivalent is 0% cyan, 9% magenta, 79% yellow and 15% black.
The closest named color is Paella (#DCC61F), a difference of 1.3 ΔE, which is barely visible.
Black text is the more readable choice on this background (contrast 11.86:1).
#D8C42E color codes
| HEX | #D8C42E | |
|---|---|---|
| RGB | rgb(216, 196, 46) | |
| RGB percent | rgb(84.7%, 76.9%, 18%) | |
| HSL | hsl(53, 69%, 51%) | |
| HSV / HSB | hsv(53, 79%, 85%) | |
| CMYK | cmyk(0%, 9%, 79%, 15%) | |
| CIE LAB | lab(78.62, -8.16, 71.42) | |
| CIE LCH | lch(78.62, 71.88, 96.52) | |
| CIE XYZ | xyz(48.554, 54.278, 10.503) | |
| Decimal | 14205998 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #D8C42E, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #D8C42E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.86:1 | Pass | Pass | Pass |
| Sample text | 1.77:1 | Fail | Fail | Fail |
| #D8C42E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.77:1 | Fail | Fail | Fail |
| Sample text | 11.86:1 | Pass | Pass | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #D8C42E looks to people with the most common types of color vision deficiency.
#d7be00Protanopia
no red cones#ddc63aDeuteranopia
no green cones#e9b5a8Tritanopia
no blue cones#c3c3c3Achromatopsia
no color vision
CSS examples
.background { background-color: #d8c42e; }
.text { color: #d8c42e; }
.border { border: 2px solid #d8c42e; }
.transparent { background-color: rgb(216 196 46 / 50%); }
.gradient { background: linear-gradient(to right, #d8c42e, #97d82e); }
Similar colors
#dcc61fPaella#d5bc26Indian Pale Ale#d6be01Groovy Lemon Pie#d9c948Lanky Lemon#e3c81cOh Em Ghee#e0c84bGolden Kingdom#e1c12fFinger Banana#e8ce49Golden Relic
Closest common color name: Dandelion.
Questions
- What color is #D8C42E?
- #D8C42E is a moderate yellow, closest to the named color Paella. It belongs to the yellow family of colors.
- What is the RGB value of #D8C42E?
- The RGB value is 216, 196, 46: 216 red, 196 green and 46 blue on a 0 to 255 scale.
- What is the complementary color of #D8C42E?
- The complementary color is #2E42D8, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #D8C42E?
- Black text. Black text has a contrast ratio of 11.86:1 and white text 1.77:1. WCAG asks for at least 4.5:1 for normal text.