Skip to content

#dccc2f

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

RGB
220, 204, 47
HSL
55°, 71%, 52%
CMYK
0, 7, 79, 14
Luminance
0.5861

Every format

HEX#dccc2f
RGBrgb(220, 204, 47)
HSLhsl(55, 71%, 52%)
CMYKcmyk(0%, 7%, 79%, 14%)
LABlab(81.1 -10.5 73.4)
LCHlch(81.1 74.2 98.1)
OKLCHoklch(0.833 0.164 103.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red86.3%
Green80.0%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta7.3%
Yellow78.6%
Key (black)13.7%

Color previews

#dccc2f text on a black background

contrast 12.72:1

Card sample

#dccc2f text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dccc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dccc2f in the Color Lab