Skip to content

#ecaf0c

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

RGB
236, 175, 12
HSL
44°, 90%, 49%
CMYK
0, 26, 95, 8
Luminance
0.4852

Every format

HEX#ecaf0c
RGBrgb(236, 175, 12)
HSLhsl(44, 90%, 49%)
CMYKcmyk(0%, 26%, 95%, 8%)
LABlab(75.2 10.7 76.7)
LCHlch(75.2 77.5 82.1)
OKLCHoklch(0.790 0.161 82.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green68.6%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta25.8%
Yellow94.9%
Key (black)7.5%

Color previews

#ecaf0c text on a black background

contrast 10.70:1

Card sample

#ecaf0c text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecaf0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecaf0c in the Color Lab