Skip to content

#ecbb21

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

RGB
236, 187, 33
HSL
46°, 84%, 53%
CMYK
0, 21, 86, 8
Luminance
0.5348

Every format

HEX#ecbb21
RGBrgb(236, 187, 33)
HSLhsl(46, 84%, 53%)
CMYKcmyk(0%, 21%, 86%, 8%)
LABlab(78.2 4.7 75.3)
LCHlch(78.2 75.4 86.4)
OKLCHoklch(0.814 0.160 88.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecbb21 on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#ecbb21 on black: 11.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green73.3%
Blue12.9%

CMYK percentages

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

Color previews

#ecbb21 text on a black background

contrast 11.70:1

Card sample

#ecbb21 text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecbb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecbb21 in the Color Lab