Skip to content

#d2cd2f

a balanced, vivid yellow · cool · closest name: gold

RGB
210, 205, 47
HSL
58°, 64%, 50%
CMYK
0, 2, 78, 18
Luminance
0.5757

Every format

HEX#d2cd2f
RGBrgb(210, 205, 47)
HSLhsl(58, 64%, 50%)
CMYKcmyk(0%, 2%, 78%, 18%)
LABlab(80.5 -15.2 72.6)
LCHlch(80.5 74.2 101.8)
OKLCHoklch(0.827 0.166 107.6)

Copy-ready code

/* CSS */
color: #d2cd2f;
background-color: #d2cd2f;
/* Tailwind (arbitrary) */
class="text-[#d2cd2f] bg-[#d2cd2f]"
/* SCSS */
$brand: #d2cd2f;
/* SwiftUI */
Color(red: 0.824, green: 0.804, blue: 0.184)
/* Android */
Color.parseColor("#d2cd2f")

Accessibility — WCAG contrast

Aa
#d2cd2f on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#d2cd2f on black: 12.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green80.4%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow77.6%
Key (black)17.6%

Color previews

#d2cd2f text on a black background

contrast 12.51:1

Card sample

#d2cd2f text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #d2cd2f;
Background color
Panel with #d2cd2f background
background-color: #d2cd2f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #d2cd2f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(210, 205, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 205, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2cd2f;
background: linear-gradient(135deg, #d2cd2f, #6AD22F);

Monochromatic scale

Palettes built from #d2cd2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cd2f in the Color Lab