Skip to content

#d2cc2b

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

RGB
210, 204, 43
HSL
58°, 66%, 50%
CMYK
0, 3, 80, 18
Luminance
0.5706

Every format

HEX#d2cc2b
RGBrgb(210, 204, 43)
HSLhsl(58, 66%, 50%)
CMYKcmyk(0%, 3%, 80%, 18%)
LABlab(80.2 -14.9 73.5)
LCHlch(80.2 75.0 101.4)
OKLCHoklch(0.824 0.167 107.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cc2b on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#d2cc2b on black: 12.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green80.0%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow79.5%
Key (black)17.6%

Color previews

#d2cc2b text on a black background

contrast 12.41:1

Card sample

#d2cc2b text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 204, 43, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 204, 43, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2cc2b;
background: linear-gradient(135deg, #d2cc2b, #69D22B);

Monochromatic scale

Palettes built from #d2cc2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cc2b in the Color Lab