Skip to content

#ecc921

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

RGB
236, 201, 33
HSL
50°, 84%, 53%
CMYK
0, 15, 86, 8
Luminance
0.5972

Every format

HEX#ecc921
RGBrgb(236, 201, 33)
HSLhsl(50, 84%, 53%)
CMYKcmyk(0%, 15%, 86%, 8%)
LABlab(81.7 -2.5 78.1)
LCHlch(81.7 78.1 91.8)
OKLCHoklch(0.841 0.167 95.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc921 on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#ecc921 on black: 12.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green78.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta14.8%
Yellow86.0%
Key (black)7.5%

Color previews

#ecc921 text on a black background

contrast 12.94:1

Card sample

#ecc921 text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc921 in the Color Lab