Skip to content

#ecc511

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

RGB
236, 197, 17
HSL
49°, 87%, 50%
CMYK
0, 17, 93, 8
Luminance
0.5781

Every format

HEX#ecc511
RGBrgb(236, 197, 17)
HSLhsl(49, 87%, 50%)
CMYKcmyk(0%, 17%, 93%, 8%)
LABlab(80.6 -0.7 80.1)
LCHlch(80.6 80.1 90.5)
OKLCHoklch(0.833 0.169 94.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc511 on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#ecc511 on black: 12.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green77.3%
Blue6.7%

CMYK percentages

Cyan0.0%
Magenta16.5%
Yellow92.8%
Key (black)7.5%

Color previews

#ecc511 text on a black background

contrast 12.56:1

Card sample

#ecc511 text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 197, 17, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 197, 17, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecc511;
background: linear-gradient(135deg, #ecc511, #81EC11);

Monochromatic scale

Palettes built from #ecc511

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc511 in the Color Lab