Skip to content

#ecec3d

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

RGB
236, 236, 61
HSL
60°, 82%, 58%
CMYK
0, 0, 74, 8
Luminance
0.7816

Every format

HEX#ecec3d
RGBrgb(236, 236, 61)
HSLhsl(60, 82%, 58%)
CMYKcmyk(0%, 0%, 74%, 8%)
LABlab(90.8 -19.1 78.6)
LCHlch(90.8 80.9 103.7)
OKLCHoklch(0.915 0.183 109.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green92.5%
Blue23.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow74.2%
Key (black)7.5%

Color previews

#ecec3d text on a black background

contrast 16.63:1

Card sample

#ecec3d text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecec3d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecec3d in the Color Lab