Skip to content

#def2aa

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

RGB
222, 242, 170
HSL
77°, 74%, 81%
CMYK
8, 0, 30, 5
Luminance
0.8194

Every format

HEX#def2aa
RGBrgb(222, 242, 170)
HSLhsl(77, 74%, 81%)
CMYKcmyk(8%, 0%, 30%, 5%)
LABlab(92.5 -18.2 32.6)
LCHlch(92.5 37.4 119.2)
OKLCHoklch(0.929 0.095 120.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def2aa on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#def2aa on black: 17.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green94.9%
Blue66.7%

CMYK percentages

Cyan8.3%
Magenta0.0%
Yellow29.8%
Key (black)5.1%

Color previews

#def2aa text on a black background

contrast 17.39:1

Card sample

#def2aa text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def2aa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def2aa in the Color Lab