Skip to content

#d2f1af

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

RGB
210, 241, 175
HSL
88°, 70%, 82%
CMYK
13, 0, 27, 6
Luminance
0.7971

Every format

HEX#d2f1af
RGBrgb(210, 241, 175)
HSLhsl(88, 70%, 82%)
CMYKcmyk(13%, 0%, 27%, 6%)
LABlab(91.5 -21.3 28.6)
LCHlch(91.5 35.7 126.7)
OKLCHoklch(0.920 0.092 128.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2f1af on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#d2f1af on black: 16.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green94.5%
Blue68.6%

CMYK percentages

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

Color previews

#d2f1af text on a black background

contrast 16.94:1

Card sample

#d2f1af text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2f1af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2f1af in the Color Lab