Skip to content

#ecbd2f

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

RGB
236, 189, 47
HSL
45°, 83%, 56%
CMYK
0, 20, 80, 8
Luminance
0.5443

Every format

HEX#ecbd2f
RGBrgb(236, 189, 47)
HSLhsl(45, 83%, 56%)
CMYKcmyk(0%, 20%, 80%, 8%)
LABlab(78.7 4.1 71.9)
LCHlch(78.7 72.0 86.8)
OKLCHoklch(0.818 0.155 88.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecbd2f on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#ecbd2f on black: 11.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green74.1%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta19.9%
Yellow80.1%
Key (black)7.5%

Color previews

#ecbd2f text on a black background

contrast 11.89:1

Card sample

#ecbd2f text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecbd2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecbd2f in the Color Lab