Skip to content

#ecc721

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

RGB
236, 199, 33
HSL
49°, 84%, 53%
CMYK
0, 16, 86, 8
Luminance
0.5879

Every format

HEX#ecc721
RGBrgb(236, 199, 33)
HSLhsl(49, 84%, 53%)
CMYKcmyk(0%, 16%, 86%, 8%)
LABlab(81.2 -1.5 77.7)
LCHlch(81.2 77.7 91.1)
OKLCHoklch(0.837 0.166 94.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc721 on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#ecc721 on black: 12.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green78.0%
Blue12.9%

CMYK percentages

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

Color previews

#ecc721 text on a black background

contrast 12.76:1

Card sample

#ecc721 text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc721

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc721 in the Color Lab