Skip to content

#ecfea2

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

RGB
236, 254, 162
HSL
72°, 98%, 82%
CMYK
7, 0, 36, 0
Luminance
0.9133

Every format

HEX#ecfea2
RGBrgb(236, 254, 162)
HSLhsl(72, 98%, 82%)
CMYKcmyk(7%, 0%, 36%, 0%)
LABlab(96.5 -19.9 42.1)
LCHlch(96.5 46.5 115.3)
OKLCHoklch(0.963 0.117 117.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecfea2 on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#ecfea2 on black: 19.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green99.6%
Blue63.5%

CMYK percentages

Cyan7.1%
Magenta0.0%
Yellow36.2%
Key (black)0.4%

Color previews

#ecfea2 text on a black background

contrast 19.27:1

Card sample

#ecfea2 text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 254, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 254, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecfea2;
background: linear-gradient(135deg, #ecfea2, #AFFEA2);

Monochromatic scale

Palettes built from #ecfea2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecfea2 in the Color Lab