Skip to content

#d2ffab

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

RGB
210, 255, 171
HSL
92°, 100%, 84%
CMYK
18, 0, 33, 0
Luminance
0.8816

Every format

HEX#d2ffab
RGBrgb(210, 255, 171)
HSLhsl(92, 100%, 84%)
CMYKcmyk(18%, 0%, 33%, 0%)
LABlab(95.2 -28.6 35.6)
LCHlch(95.2 45.6 128.8)
OKLCHoklch(0.949 0.118 131.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2ffab on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#d2ffab on black: 18.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green100.0%
Blue67.1%

CMYK percentages

Cyan17.6%
Magenta0.0%
Yellow32.9%
Key (black)0.0%

Color previews

#d2ffab text on a black background

contrast 18.63:1

Card sample

#d2ffab text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2ffab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2ffab in the Color Lab