Skip to content

#def262

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

RGB
222, 242, 98
HSL
68°, 85%, 67%
CMYK
8, 0, 60, 5
Luminance
0.7992

Every format

HEX#def262
RGBrgb(222, 242, 98)
HSLhsl(68, 85%, 67%)
CMYKcmyk(8%, 0%, 60%, 5%)
LABlab(91.7 -25.6 65.5)
LCHlch(91.7 70.3 111.3)
OKLCHoklch(0.919 0.168 116.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def262 on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#def262 on black: 16.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green94.9%
Blue38.4%

CMYK percentages

Cyan8.3%
Magenta0.0%
Yellow59.5%
Key (black)5.1%

Color previews

#def262 text on a black background

contrast 16.98:1

Card sample

#def262 text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def262

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def262 in the Color Lab