Skip to content

#def7af

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

RGB
222, 247, 175
HSL
81°, 82%, 83%
CMYK
10, 0, 29, 3
Luminance
0.8515

Every format

HEX#def7af
RGBrgb(222, 247, 175)
HSLhsl(81, 82%, 83%)
CMYKcmyk(10%, 0%, 29%, 3%)
LABlab(94.0 -20.0 32.0)
LCHlch(94.0 37.7 122.0)
OKLCHoklch(0.941 0.097 123.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def7af on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#def7af on black: 18.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green96.9%
Blue68.6%

CMYK percentages

Cyan10.1%
Magenta0.0%
Yellow29.1%
Key (black)3.1%

Color previews

#def7af text on a black background

contrast 18.03:1

Card sample

#def7af text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 247, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 247, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def7af;
background: linear-gradient(135deg, #def7af, #AFF7B0);

Monochromatic scale

Palettes built from #def7af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def7af in the Color Lab