Skip to content

#ecad1f

a balanced, electric yellow · warm · closest name: orange

RGB
236, 173, 31
HSL
42°, 84%, 52%
CMYK
0, 27, 87, 8
Luminance
0.4782

Every format

HEX#ecad1f
RGBrgb(236, 173, 31)
HSLhsl(42, 84%, 52%)
CMYKcmyk(0%, 27%, 87%, 8%)
LABlab(74.7 12.1 73.0)
LCHlch(74.7 74.0 80.6)
OKLCHoklch(0.786 0.156 80.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecad1f on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#ecad1f on black: 10.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green67.8%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta26.7%
Yellow86.9%
Key (black)7.5%

Color previews

#ecad1f text on a black background

contrast 10.56:1

Card sample

#ecad1f text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 173, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 173, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecad1f;
background: linear-gradient(135deg, #ecad1f, #A2EC1F);

Monochromatic scale

Palettes built from #ecad1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecad1f in the Color Lab