Skip to content

#decf02

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

RGB
222, 207, 2
HSL
56°, 98%, 44%
CMYK
0, 7, 99, 13
Luminance
0.6016

Every format

HEX#decf02
RGBrgb(222, 207, 2)
HSLhsl(56, 98%, 44%)
CMYKcmyk(0%, 7%, 99%, 13%)
LABlab(81.9 -12.0 82.0)
LCHlch(81.9 82.9 98.3)
OKLCHoklch(0.840 0.177 104.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.1%
Green81.2%
Blue0.8%

CMYK percentages

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

Color previews

#decf02 text on a black background

contrast 13.03:1

Card sample

#decf02 text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #decf02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #decf02 in the Color Lab