Skip to content

#dcdc2f

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

RGB
220, 220, 47
HSL
60°, 71%, 52%
CMYK
0, 0, 79, 14
Luminance
0.6661

Every format

HEX#dcdc2f
RGBrgb(220, 220, 47)
HSLhsl(60, 71%, 52%)
CMYKcmyk(0%, 0%, 79%, 14%)
LABlab(85.3 -18.4 77.2)
LCHlch(85.3 79.3 103.4)
OKLCHoklch(0.867 0.177 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dcdc2f on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#dcdc2f on black: 14.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.3%
Green86.3%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow78.6%
Key (black)13.7%

Color previews

#dcdc2f text on a black background

contrast 14.32:1

Card sample

#dcdc2f text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dcdc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dcdc2f in the Color Lab