Skip to content

#d2d02f

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

RGB
210, 208, 47
HSL
59°, 64%, 50%
CMYK
0, 1, 78, 18
Luminance
0.5902

Every format

HEX#d2d02f
RGBrgb(210, 208, 47)
HSLhsl(59, 64%, 50%)
CMYKcmyk(0%, 1%, 78%, 18%)
LABlab(81.3 -16.7 73.3)
LCHlch(81.3 75.2 102.9)
OKLCHoklch(0.833 0.168 108.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2d02f on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#d2d02f on black: 12.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green81.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta1.0%
Yellow77.6%
Key (black)17.6%

Color previews

#d2d02f text on a black background

contrast 12.80:1

Card sample

#d2d02f text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2d02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2d02f in the Color Lab