Skip to content

#def962

a light, electric green · cool · closest name: yellow

RGB
222, 249, 98
HSL
71°, 93%, 68%
CMYK
11, 0, 61, 2
Luminance
0.8416

Every format

HEX#def962
RGBrgb(222, 249, 98)
HSLhsl(71, 93%, 68%)
CMYKcmyk(11%, 0%, 61%, 2%)
LABlab(93.5 -28.9 67.5)
LCHlch(93.5 73.4 113.1)
OKLCHoklch(0.934 0.176 118.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def962 on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#def962 on black: 17.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green97.6%
Blue38.4%

CMYK percentages

Cyan10.8%
Magenta0.0%
Yellow60.6%
Key (black)2.4%

Color previews

#def962 text on a black background

contrast 17.83:1

Card sample

#def962 text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 249, 98, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 249, 98, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def962;
background: linear-gradient(135deg, #def962, #79F962);

Monochromatic scale

Palettes built from #def962

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def962 in the Color Lab