Skip to content

#ebac2d

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

RGB
235, 172, 45
HSL
40°, 83%, 55%
CMYK
0, 27, 81, 8
Luminance
0.4736

Every format

HEX#ebac2d
RGBrgb(235, 172, 45)
HSLhsl(40, 83%, 55%)
CMYKcmyk(0%, 27%, 81%, 8%)
LABlab(74.4 12.5 68.7)
LCHlch(74.4 69.8 79.7)
OKLCHoklch(0.784 0.150 79.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.2%
Green67.5%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta26.8%
Yellow80.9%
Key (black)7.8%

Color previews

#ebac2d text on a black background

contrast 10.47:1

Card sample

#ebac2d text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ebac2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ebac2d in the Color Lab