Skip to content

#decc2e

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

RGB
222, 204, 46
HSL
54°, 73%, 53%
CMYK
0, 8, 79, 13
Luminance
0.5891

Every format

HEX#decc2e
RGBrgb(222, 204, 46)
HSLhsl(54, 73%, 53%)
CMYKcmyk(0%, 8%, 79%, 13%)
LABlab(81.2 -9.7 73.9)
LCHlch(81.2 74.6 97.4)
OKLCHoklch(0.835 0.164 102.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.1%
Green80.0%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta8.1%
Yellow79.3%
Key (black)12.9%

Color previews

#decc2e text on a black background

contrast 12.78:1

Card sample

#decc2e text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #decc2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #decc2e in the Color Lab