Skip to content

#d2cc3f

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

RGB
210, 204, 63
HSL
58°, 62%, 54%
CMYK
0, 3, 70, 18
Luminance
0.5725

Every format

HEX#d2cc3f
RGBrgb(210, 204, 63)
HSLhsl(58, 62%, 54%)
CMYKcmyk(0%, 3%, 70%, 18%)
LABlab(80.3 -14.1 67.2)
LCHlch(80.3 68.6 101.8)
OKLCHoklch(0.826 0.156 106.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green80.0%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow70.0%
Key (black)17.6%

Color previews

#d2cc3f text on a black background

contrast 12.45:1

Card sample

#d2cc3f text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cc3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cc3f in the Color Lab