Skip to content

#ecc01b

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

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

Every format

HEX#ecc01b
RGBrgb(236, 192, 27)
HSLhsl(47, 85%, 52%)
CMYKcmyk(0%, 19%, 89%, 8%)
LABlab(79.4 2.0 77.5)
LCHlch(79.4 77.6 88.5)
OKLCHoklch(0.823 0.164 91.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green75.3%
Blue10.6%

CMYK percentages

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

Color previews

#ecc01b text on a black background

contrast 12.12:1

Card sample

#ecc01b text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc01b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc01b in the Color Lab