Skip to content

#def7ab

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

RGB
222, 247, 171
HSL
80°, 83%, 82%
CMYK
10, 0, 31, 3
Luminance
0.8499

Every format

HEX#def7ab
RGBrgb(222, 247, 171)
HSLhsl(80, 83%, 82%)
CMYKcmyk(10%, 0%, 31%, 3%)
LABlab(93.9 -20.5 33.9)
LCHlch(93.9 39.6 121.2)
OKLCHoklch(0.940 0.101 123.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def7ab on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#def7ab on black: 18.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green96.9%
Blue67.1%

CMYK percentages

Cyan10.1%
Magenta0.0%
Yellow30.8%
Key (black)3.1%

Color previews

#def7ab text on a black background

contrast 18.00:1

Card sample

#def7ab text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def7ab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def7ab in the Color Lab