Skip to content

#dec50f

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

RGB
222, 197, 15
HSL
53°, 87%, 47%
CMYK
0, 11, 93, 13
Luminance
0.5550

Every format

HEX#dec50f
RGBrgb(222, 197, 15)
HSLhsl(53, 87%, 47%)
CMYKcmyk(0%, 11%, 93%, 13%)
LABlab(79.3 -6.8 78.8)
LCHlch(79.3 79.1 94.9)
OKLCHoklch(0.820 0.168 99.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dec50f on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#dec50f on black: 12.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green77.3%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta11.3%
Yellow93.2%
Key (black)12.9%

Color previews

#dec50f text on a black background

contrast 12.10:1

Card sample

#dec50f text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 197, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 197, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dec50f;
background: linear-gradient(135deg, #dec50f, #6DDE0F);

Monochromatic scale

Palettes built from #dec50f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dec50f in the Color Lab