Skip to content

#ecfbaf

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

RGB
236, 251, 175
HSL
72°, 91%, 84%
CMYK
6, 0, 30, 2
Luminance
0.8992

Every format

HEX#ecfbaf
RGBrgb(236, 251, 175)
HSLhsl(72, 91%, 84%)
CMYKcmyk(6%, 0%, 30%, 2%)
LABlab(96.0 -16.9 34.9)
LCHlch(96.0 38.7 115.8)
OKLCHoklch(0.959 0.098 117.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecfbaf on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#ecfbaf on black: 18.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green98.4%
Blue68.6%

CMYK percentages

Cyan6.0%
Magenta0.0%
Yellow30.3%
Key (black)1.6%

Color previews

#ecfbaf text on a black background

contrast 18.98:1

Card sample

#ecfbaf text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecfbaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecfbaf in the Color Lab