Skip to content

#def0ac

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

RGB
222, 240, 172
HSL
76°, 69%, 81%
CMYK
8, 0, 28, 6
Luminance
0.8083

Every format

HEX#def0ac
RGBrgb(222, 240, 172)
HSLhsl(76, 69%, 81%)
CMYKcmyk(8%, 0%, 28%, 6%)
LABlab(92.1 -17.0 31.0)
LCHlch(92.1 35.3 118.7)
OKLCHoklch(0.925 0.090 120.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan7.5%
Magenta0.0%
Yellow28.3%
Key (black)5.9%

Color previews

#def0ac text on a black background

contrast 17.17:1

Card sample

#def0ac text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def0ac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def0ac in the Color Lab