Skip to content

#ecc521

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

RGB
236, 197, 33
HSL
49°, 84%, 53%
CMYK
0, 17, 86, 8
Luminance
0.5788

Every format

HEX#ecc521
RGBrgb(236, 197, 33)
HSLhsl(49, 84%, 53%)
CMYKcmyk(0%, 17%, 86%, 8%)
LABlab(80.7 -0.4 77.3)
LCHlch(80.7 77.3 90.3)
OKLCHoklch(0.833 0.165 93.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green77.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta16.5%
Yellow86.0%
Key (black)7.5%

Color previews

#ecc521 text on a black background

contrast 12.58:1

Card sample

#ecc521 text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc521

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc521 in the Color Lab