Skip to content

#ebac1d

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

RGB
235, 172, 29
HSL
42°, 84%, 52%
CMYK
0, 27, 88, 8
Luminance
0.4726

Every format

HEX#ebac1d
RGBrgb(235, 172, 29)
HSLhsl(42, 84%, 52%)
CMYKcmyk(0%, 27%, 88%, 8%)
LABlab(74.4 12.1 73.1)
LCHlch(74.4 74.1 80.6)
OKLCHoklch(0.783 0.156 80.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ebac1d on white: 2.01:1
AA ✗ fail · AA-large · AAA
Aa
#ebac1d on black: 10.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.2%
Green67.5%
Blue11.4%

CMYK percentages

Cyan0.0%
Magenta26.8%
Yellow87.7%
Key (black)7.8%

Color previews

#ebac1d text on a black background

contrast 10.45:1

Card sample

#ebac1d text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(235, 172, 29, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(235, 172, 29, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ebac1d;
background: linear-gradient(135deg, #ebac1d, #A1EB1D);

Monochromatic scale

Palettes built from #ebac1d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ebac1d in the Color Lab