Skip to content

#def1ac

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

RGB
222, 241, 172
HSL
77°, 71%, 81%
CMYK
8, 0, 29, 6
Luminance
0.8142

Every format

HEX#def1ac
RGBrgb(222, 241, 172)
HSLhsl(77, 71%, 81%)
CMYKcmyk(8%, 0%, 29%, 6%)
LABlab(92.3 -17.5 31.3)
LCHlch(92.3 35.9 119.1)
OKLCHoklch(0.928 0.091 120.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def1ac on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#def1ac on black: 17.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green94.5%
Blue67.5%

CMYK percentages

Cyan7.9%
Magenta0.0%
Yellow28.6%
Key (black)5.5%

Color previews

#def1ac text on a black background

contrast 17.28:1

Card sample

#def1ac text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def1ac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def1ac in the Color Lab