Skip to content

#ecf52c

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

RGB
236, 245, 44
HSL
63°, 91%, 57%
CMYK
4, 0, 82, 4
Luminance
0.8332

Every format

HEX#ecf52c
RGBrgb(236, 245, 44)
HSLhsl(63, 91%, 57%)
CMYKcmyk(4%, 0%, 82%, 4%)
LABlab(93.2 -24.0 85.1)
LCHlch(93.2 88.5 105.7)
OKLCHoklch(0.933 0.198 112.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecf52c on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#ecf52c on black: 17.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green96.1%
Blue17.3%

CMYK percentages

Cyan3.7%
Magenta0.0%
Yellow82.0%
Key (black)3.9%

Color previews

#ecf52c text on a black background

contrast 17.66:1

Card sample

#ecf52c text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 245, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 245, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecf52c;
background: linear-gradient(135deg, #ecf52c, #66F52C);

Monochromatic scale

Palettes built from #ecf52c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecf52c in the Color Lab