Skip to content

#ecc02f

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

RGB
236, 192, 47
HSL
46°, 83%, 56%
CMYK
0, 19, 80, 8
Luminance
0.5574

Every format

HEX#ecc02f
RGBrgb(236, 192, 47)
HSLhsl(46, 83%, 56%)
CMYKcmyk(0%, 19%, 80%, 8%)
LABlab(79.5 2.5 72.6)
LCHlch(79.5 72.6 88.0)
OKLCHoklch(0.824 0.157 90.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc02f on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#ecc02f on black: 12.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green75.3%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta18.6%
Yellow80.1%
Key (black)7.5%

Color previews

#ecc02f text on a black background

contrast 12.15:1

Card sample

#ecc02f text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 192, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 192, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecc02f;
background: linear-gradient(135deg, #ecc02f, #9AEC2F);

Monochromatic scale

Palettes built from #ecc02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc02f in the Color Lab