Skip to content

#ecc821

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

RGB
236, 200, 33
HSL
49°, 84%, 53%
CMYK
0, 15, 86, 8
Luminance
0.5925

Every format

HEX#ecc821
RGBrgb(236, 200, 33)
HSLhsl(49, 84%, 53%)
CMYKcmyk(0%, 15%, 86%, 8%)
LABlab(81.4 -2.0 77.9)
LCHlch(81.4 77.9 91.5)
OKLCHoklch(0.839 0.166 95.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc821 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#ecc821 on black: 12.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green78.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta15.3%
Yellow86.0%
Key (black)7.5%

Color previews

#ecc821 text on a black background

contrast 12.85:1

Card sample

#ecc821 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc821 in the Color Lab