Skip to content

#ecc01c

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

RGB
236, 192, 28
HSL
47°, 85%, 52%
CMYK
0, 19, 88, 8
Luminance
0.5562

Every format

HEX#ecc01c
RGBrgb(236, 192, 28)
HSLhsl(47, 85%, 52%)
CMYKcmyk(0%, 19%, 88%, 8%)
LABlab(79.4 2.0 77.3)
LCHlch(79.4 77.4 88.5)
OKLCHoklch(0.823 0.163 91.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green75.3%
Blue11.0%

CMYK percentages

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

Color previews

#ecc01c text on a black background

contrast 12.12:1

Card sample

#ecc01c text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc01c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc01c in the Color Lab