Skip to content

#ecaf2e

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

RGB
236, 175, 46
HSL
41°, 83%, 55%
CMYK
0, 26, 81, 8
Luminance
0.4869

Every format

HEX#ecaf2e
RGBrgb(236, 175, 46)
HSLhsl(41, 83%, 55%)
CMYKcmyk(0%, 26%, 81%, 8%)
LABlab(75.3 11.4 69.2)
LCHlch(75.3 70.1 80.7)
OKLCHoklch(0.791 0.151 80.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecaf2e on white: 1.96:1
AA ✗ fail · AA-large · AAA
Aa
#ecaf2e on black: 10.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green68.6%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta25.8%
Yellow80.5%
Key (black)7.5%

Color previews

#ecaf2e text on a black background

contrast 10.74:1

Card sample

#ecaf2e text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecaf2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecaf2e in the Color Lab