Skip to content

#ecc01a

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

RGB
236, 192, 26
HSL
47°, 85%, 51%
CMYK
0, 19, 89, 8
Luminance
0.5561

Every format

HEX#ecc01a
RGBrgb(236, 192, 26)
HSLhsl(47, 85%, 51%)
CMYKcmyk(0%, 19%, 89%, 8%)
LABlab(79.4 2.0 77.7)
LCHlch(79.4 77.8 88.5)
OKLCHoklch(0.823 0.164 91.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc01a on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#ecc01a on black: 12.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green75.3%
Blue10.2%

CMYK percentages

Cyan0.0%
Magenta18.6%
Yellow89.0%
Key (black)7.5%

Color previews

#ecc01a text on a black background

contrast 12.12:1

Card sample

#ecc01a text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc01a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc01a in the Color Lab