Skip to content

#decc0c

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

RGB
222, 204, 12
HSL
55°, 90%, 46%
CMYK
0, 8, 95, 13
Luminance
0.5874

Every format

HEX#decc0c
RGBrgb(222, 204, 12)
HSLhsl(55, 90%, 46%)
CMYKcmyk(0%, 8%, 95%, 13%)
LABlab(81.2 -10.4 80.5)
LCHlch(81.2 81.2 97.3)
OKLCHoklch(0.834 0.174 103.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.1%
Green80.0%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta8.1%
Yellow94.6%
Key (black)12.9%

Color previews

#decc0c text on a black background

contrast 12.75:1

Card sample

#decc0c text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #decc0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #decc0c in the Color Lab