Skip to content

#decf21

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

RGB
222, 207, 33
HSL
55°, 74%, 50%
CMYK
0, 7, 85, 13
Luminance
0.6027

Every format

HEX#decf21
RGBrgb(222, 207, 33)
HSLhsl(55, 74%, 50%)
CMYKcmyk(0%, 7%, 85%, 13%)
LABlab(82.0 -11.5 77.8)
LCHlch(82.0 78.7 98.4)
OKLCHoklch(0.841 0.171 104.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#decf21 on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#decf21 on black: 13.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green81.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta6.8%
Yellow85.1%
Key (black)12.9%

Color previews

#decf21 text on a black background

contrast 13.05:1

Card sample

#decf21 text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #decf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #decf21 in the Color Lab