Skip to content

#d2cf2c

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

RGB
210, 207, 44
HSL
59°, 65%, 50%
CMYK
0, 1, 79, 18
Luminance
0.5851

Every format

HEX#d2cf2c
RGBrgb(210, 207, 44)
HSLhsl(59, 65%, 50%)
CMYKcmyk(0%, 1%, 79%, 18%)
LABlab(81.0 -16.3 73.9)
LCHlch(81.0 75.7 102.5)
OKLCHoklch(0.831 0.169 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cf2c on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#d2cf2c on black: 12.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green81.2%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow79.0%
Key (black)17.6%

Color previews

#d2cf2c text on a black background

contrast 12.70:1

Card sample

#d2cf2c text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 207, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 207, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2cf2c;
background: linear-gradient(135deg, #d2cf2c, #66D22C);

Monochromatic scale

Palettes built from #d2cf2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cf2c in the Color Lab