Skip to content

#ecab0f

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

RGB
236, 171, 15
HSL
42°, 88%, 49%
CMYK
0, 28, 94, 8
Luminance
0.4699

Every format

HEX#ecab0f
RGBrgb(236, 171, 15)
HSLhsl(42, 88%, 49%)
CMYKcmyk(0%, 28%, 94%, 8%)
LABlab(74.2 12.8 75.7)
LCHlch(74.2 76.7 80.4)
OKLCHoklch(0.782 0.159 80.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecab0f on white: 2.02:1
AA ✗ fail · AA-large · AAA
Aa
#ecab0f on black: 10.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green67.1%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta27.5%
Yellow93.6%
Key (black)7.5%

Color previews

#ecab0f text on a black background

contrast 10.40:1

Card sample

#ecab0f text on a white background

contrast 2.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 171, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 171, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecab0f;
background: linear-gradient(135deg, #ecab0f, #99EC0F);

Monochromatic scale

Palettes built from #ecab0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecab0f in the Color Lab