Skip to content

#ecfc2f

a balanced, electric yellow · cool · closest name: yellow

RGB
236, 252, 47
HSL
65°, 97%, 59%
CMYK
6, 0, 81, 1
Luminance
0.8766

Every format

HEX#ecfc2f
RGBrgb(236, 252, 47)
HSLhsl(65, 97%, 59%)
CMYKcmyk(6%, 0%, 81%, 1%)
LABlab(95.0 -27.2 86.0)
LCHlch(95.0 90.2 107.5)
OKLCHoklch(0.948 0.204 114.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green98.8%
Blue18.4%

CMYK percentages

Cyan6.3%
Magenta0.0%
Yellow81.3%
Key (black)1.2%

Color previews

#ecfc2f text on a black background

contrast 18.53:1

Card sample

#ecfc2f text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 252, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 252, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecfc2f;
background: linear-gradient(135deg, #ecfc2f, #63FC2F);

Monochromatic scale

Palettes built from #ecfc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecfc2f in the Color Lab