Skip to content

#def52c

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

RGB
222, 245, 44
HSL
67°, 91%, 57%
CMYK
9, 0, 82, 4
Luminance
0.8102

Every format

HEX#def52c
RGBrgb(222, 245, 44)
HSLhsl(67, 91%, 57%)
CMYKcmyk(9%, 0%, 82%, 4%)
LABlab(92.1 -29.6 83.9)
LCHlch(92.1 89.0 109.5)
OKLCHoklch(0.922 0.203 116.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def52c on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#def52c on black: 17.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green96.1%
Blue17.3%

CMYK percentages

Cyan9.4%
Magenta0.0%
Yellow82.0%
Key (black)3.9%

Color previews

#def52c text on a black background

contrast 17.20:1

Card sample

#def52c text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 245, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 245, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def52c;
background: linear-gradient(135deg, #def52c, #58F52C);

Monochromatic scale

Palettes built from #def52c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def52c in the Color Lab