Skip to content

#ecef1c

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

RGB
236, 239, 28
HSL
61°, 87%, 52%
CMYK
1, 0, 88, 6
Luminance
0.7965

Every format

HEX#ecef1c
RGBrgb(236, 239, 28)
HSLhsl(61, 87%, 52%)
CMYKcmyk(1%, 0%, 88%, 6%)
LABlab(91.5 -21.5 86.9)
LCHlch(91.5 89.5 103.9)
OKLCHoklch(0.920 0.198 110.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green93.7%
Blue11.0%

CMYK percentages

Cyan1.3%
Magenta0.0%
Yellow88.3%
Key (black)6.3%

Color previews

#ecef1c text on a black background

contrast 16.93:1

Card sample

#ecef1c text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecef1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecef1c in the Color Lab