Skip to content

#def1af

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

RGB
222, 241, 175
HSL
77°, 70%, 82%
CMYK
8, 0, 27, 6
Luminance
0.8154

Every format

HEX#def1af
RGBrgb(222, 241, 175)
HSLhsl(77, 70%, 82%)
CMYKcmyk(8%, 0%, 27%, 6%)
LABlab(92.4 -17.1 29.9)
LCHlch(92.4 34.4 119.7)
OKLCHoklch(0.928 0.088 121.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.1%
Green94.5%
Blue68.6%

CMYK percentages

Cyan7.9%
Magenta0.0%
Yellow27.4%
Key (black)5.5%

Color previews

#def1af text on a black background

contrast 17.31:1

Card sample

#def1af text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def1af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def1af in the Color Lab