Skip to content

#ecef1a

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

RGB
236, 239, 26
HSL
61°, 87%, 52%
CMYK
1, 0, 89, 6
Luminance
0.7964

Every format

HEX#ecef1a
RGBrgb(236, 239, 26)
HSLhsl(61, 87%, 52%)
CMYKcmyk(1%, 0%, 89%, 6%)
LABlab(91.5 -21.5 87.2)
LCHlch(91.5 89.8 103.8)
OKLCHoklch(0.920 0.198 110.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecef1a on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#ecef1a on black: 16.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green93.7%
Blue10.2%

CMYK percentages

Cyan1.3%
Magenta0.0%
Yellow89.1%
Key (black)6.3%

Color previews

#ecef1a text on a black background

contrast 16.93:1

Card sample

#ecef1a text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 239, 26, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 239, 26, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecef1a;
background: linear-gradient(135deg, #ecef1a, #5EEF1A);

Monochromatic scale

Palettes built from #ecef1a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecef1a in the Color Lab