Skip to content

#ebac18

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

RGB
235, 172, 24
HSL
42°, 84%, 51%
CMYK
0, 27, 90, 8
Luminance
0.4723

Every format

HEX#ebac18
RGBrgb(235, 172, 24)
HSLhsl(42, 84%, 51%)
CMYKcmyk(0%, 27%, 90%, 8%)
LABlab(74.3 12.0 74.2)
LCHlch(74.3 75.1 80.8)
OKLCHoklch(0.783 0.157 81.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.2%
Green67.5%
Blue9.4%

CMYK percentages

Cyan0.0%
Magenta26.8%
Yellow89.8%
Key (black)7.8%

Color previews

#ebac18 text on a black background

contrast 10.45:1

Card sample

#ebac18 text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ebac18

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ebac18 in the Color Lab