Skip to content

#daf2a7

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

RGB
218, 242, 167
HSL
79°, 74%, 80%
CMYK
10, 0, 31, 5
Luminance
0.8120

Every format

HEX#daf2a7
RGBrgb(218, 242, 167)
HSLhsl(79, 74%, 80%)
CMYKcmyk(10%, 0%, 31%, 5%)
LABlab(92.2 -20.1 33.7)
LCHlch(92.2 39.2 120.8)
OKLCHoklch(0.926 0.100 122.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red85.5%
Green94.9%
Blue65.5%

CMYK percentages

Cyan9.9%
Magenta0.0%
Yellow31.0%
Key (black)5.1%

Color previews

#daf2a7 text on a black background

contrast 17.24:1

Card sample

#daf2a7 text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #daf2a7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #daf2a7 in the Color Lab