Skip to content

#d0d02f

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

RGB
208, 208, 47
HSL
60°, 63%, 50%
CMYK
0, 0, 77, 18
Luminance
0.5873

Every format

HEX#d0d02f
RGBrgb(208, 208, 47)
HSLhsl(60, 63%, 50%)
CMYKcmyk(0%, 0%, 77%, 18%)
LABlab(81.1 -17.6 73.1)
LCHlch(81.1 75.2 103.5)
OKLCHoklch(0.831 0.169 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red81.6%
Green81.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow77.4%
Key (black)18.4%

Color previews

#d0d02f text on a black background

contrast 12.75:1

Card sample

#d0d02f text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d0d02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d0d02f in the Color Lab