Skip to content

#decc3b

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

RGB
222, 204, 59
HSL
53°, 71%, 55%
CMYK
0, 8, 73, 13
Luminance
0.5903

Every format

HEX#decc3b
RGBrgb(222, 204, 59)
HSLhsl(53, 71%, 55%)
CMYKcmyk(0%, 8%, 73%, 13%)
LABlab(81.3 -9.2 69.9)
LCHlch(81.3 70.5 97.5)
OKLCHoklch(0.836 0.157 102.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.1%
Green80.0%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta8.1%
Yellow73.4%
Key (black)12.9%

Color previews

#decc3b text on a black background

contrast 12.81:1

Card sample

#decc3b text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 204, 59, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 204, 59, 0.45);
Border & gradient
Gradient panel
border: 3px solid #decc3b;
background: linear-gradient(135deg, #decc3b, #83DE3B);

Monochromatic scale

Palettes built from #decc3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #decc3b in the Color Lab