Skip to content

#def02a

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

RGB
222, 240, 42
HSL
66°, 87%, 55%
CMYK
8, 0, 83, 6
Luminance
0.7802

Every format

HEX#def02a
RGBrgb(222, 240, 42)
HSLhsl(66, 87%, 55%)
CMYKcmyk(8%, 0%, 83%, 6%)
LABlab(90.8 -27.4 83.2)
LCHlch(90.8 87.6 108.2)
OKLCHoklch(0.911 0.198 115.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def02a on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#def02a on black: 16.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green94.1%
Blue16.5%

CMYK percentages

Cyan7.5%
Magenta0.0%
Yellow82.5%
Key (black)5.9%

Color previews

#def02a text on a black background

contrast 16.60:1

Card sample

#def02a text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def02a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def02a in the Color Lab