Skip to content

#ecf60c

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

RGB
236, 246, 12
HSL
63°, 93%, 51%
CMYK
4, 0, 95, 4
Luminance
0.8377

Every format

HEX#ecf60c
RGBrgb(236, 246, 12)
HSLhsl(63, 93%, 51%)
CMYKcmyk(4%, 0%, 95%, 4%)
LABlab(93.3 -25.0 90.2)
LCHlch(93.3 93.6 105.5)
OKLCHoklch(0.934 0.207 112.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecf60c on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#ecf60c on black: 17.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green96.5%
Blue4.7%

CMYK percentages

Cyan4.1%
Magenta0.0%
Yellow95.1%
Key (black)3.5%

Color previews

#ecf60c text on a black background

contrast 17.75:1

Card sample

#ecf60c text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecf60c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecf60c in the Color Lab