Skip to content

#def7ac

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

RGB
222, 247, 172
HSL
80°, 82%, 82%
CMYK
10, 0, 30, 3
Luminance
0.8503

Every format

HEX#def7ac
RGBrgb(222, 247, 172)
HSLhsl(80, 82%, 82%)
CMYKcmyk(10%, 0%, 30%, 3%)
LABlab(93.9 -20.4 33.4)
LCHlch(93.9 39.2 121.4)
OKLCHoklch(0.940 0.100 123.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#def7ac text on a black background

contrast 18.01:1

Card sample

#def7ac text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def7ac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def7ac in the Color Lab