#D2C521 color
The hex color #D2C521 is a moderate yellow.
In the RGB color model it is made of 82.4% red, 77.3% green and 12.9% blue (210, 197, 33).
Its hue angle is 56°, with 73% saturation and 48% lightness. For print, the CMYK equivalent is 0% cyan, 6% magenta, 84% yellow and 18% black.
The closest named color is Paella (#DCC61F), a difference of 2.4 ΔE, a small difference.
Black text is the more readable choice on this background (contrast 11.75:1).
#D2C521 color codes
| HEX | #D2C521 | |
|---|---|---|
| RGB | rgb(210, 197, 33) | |
| RGB percent | rgb(82.4%, 77.3%, 12.9%) | |
| HSL | hsl(56, 73%, 48%) | |
| HSV / HSB | hsv(56, 84%, 82%) | |
| CMYK | cmyk(0%, 6%, 84%, 18%) | |
| CIE LAB | lab(78.31, -11.64, 74.38) | |
| CIE LCH | lch(78.31, 75.29, 98.89) | |
| CIE XYZ | xyz(46.821, 53.746, 9.346) | |
| Decimal | 13813025 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #D2C521, 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 #D2C521 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.75:1 | Pass | Pass | Pass |
| Sample text | 1.79:1 | Fail | Fail | Fail |
| #D2C521 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.79:1 | Fail | Fail | Fail |
| Sample text | 11.75: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 #D2C521 looks to people with the most common types of color vision deficiency.
#d7be00Protanopia
no red cones#dcc531Deuteranopia
no green cones#e2b7a8Tritanopia
no blue cones#c2c2c2Achromatopsia
no color vision
CSS examples
.background { background-color: #d2c521; }
.text { color: #d2c521; }
.border { border: 2px solid #d2c521; }
.transparent { background-color: rgb(210 197 33 / 50%); }
.gradient { background: linear-gradient(to right, #d2c521, #86d221); }
Similar colors
#dcc61fPaella#d9c948Lanky Lemon#d6be01Groovy Lemon Pie#cccc11Golden Harvest#d5bc26Indian Pale Ale#e3c81cOh Em Ghee#e0c84bGolden Kingdom#e8d720Holy Grail
Closest common color name: Dandelion.
Questions
- What color is #D2C521?
- #D2C521 is a moderate yellow, closest to the named color Paella. It belongs to the yellow family of colors.
- What is the RGB value of #D2C521?
- The RGB value is 210, 197, 33: 210 red, 197 green and 33 blue on a 0 to 255 scale.
- What is the complementary color of #D2C521?
- The complementary color is #212ED2, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #D2C521?
- Black text. Black text has a contrast ratio of 11.75:1 and white text 1.79:1. WCAG asks for at least 4.5:1 for normal text.