Skip to content

#ecec2c

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

RGB
236, 236, 44
HSL
60°, 84%, 55%
CMYK
0, 0, 81, 8
Luminance
0.7801

Every format

HEX#ecec2c
RGBrgb(236, 236, 44)
HSLhsl(60, 84%, 55%)
CMYKcmyk(0%, 0%, 81%, 8%)
LABlab(90.8 -19.7 83.1)
LCHlch(90.8 85.4 103.3)
OKLCHoklch(0.914 0.190 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecec2c on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#ecec2c on black: 16.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green92.5%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow81.4%
Key (black)7.5%

Color previews

#ecec2c text on a black background

contrast 16.60:1

Card sample

#ecec2c text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecec2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecec2c in the Color Lab