Skip to content

#ecec49

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

RGB
236, 236, 73
HSL
60°, 81%, 61%
CMYK
0, 0, 69, 8
Luminance
0.7830

Every format

HEX#ecec49
RGBrgb(236, 236, 73)
HSLhsl(60, 81%, 61%)
CMYKcmyk(0%, 0%, 69%, 8%)
LABlab(90.9 -18.6 74.7)
LCHlch(90.9 77.0 104.0)
OKLCHoklch(0.915 0.176 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green92.5%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow69.1%
Key (black)7.5%

Color previews

#ecec49 text on a black background

contrast 16.66:1

Card sample

#ecec49 text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecec49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecec49 in the Color Lab