Skip to content

#d2ec7f

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

RGB
210, 236, 127
HSL
74°, 74%, 71%
CMYK
11, 0, 46, 8
Luminance
0.7522

Every format

HEX#d2ec7f
RGBrgb(210, 236, 127)
HSLhsl(74, 74%, 71%)
CMYKcmyk(11%, 0%, 46%, 8%)
LABlab(89.5 -24.9 49.7)
LCHlch(89.5 55.6 116.5)
OKLCHoklch(0.901 0.138 120.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2ec7f on white: 1.31:1
AA ✗ fail · AA-large · AAA
Aa
#d2ec7f on black: 16.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green92.5%
Blue49.8%

CMYK percentages

Cyan11.0%
Magenta0.0%
Yellow46.2%
Key (black)7.5%

Color previews

#d2ec7f text on a black background

contrast 16.04:1

Card sample

#d2ec7f text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 236, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 236, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2ec7f;
background: linear-gradient(135deg, #d2ec7f, #89EC7F);

Monochromatic scale

Palettes built from #d2ec7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2ec7f in the Color Lab