Skip to content

#ebac0f

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

RGB
235, 172, 15
HSL
43°, 88%, 49%
CMYK
0, 27, 94, 8
Luminance
0.4720

Every format

HEX#ebac0f
RGBrgb(235, 172, 15)
HSLhsl(43, 88%, 49%)
CMYKcmyk(0%, 27%, 94%, 8%)
LABlab(74.3 11.9 75.7)
LCHlch(74.3 76.6 81.1)
OKLCHoklch(0.783 0.159 81.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.2%
Green67.5%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta26.8%
Yellow93.6%
Key (black)7.8%

Color previews

#ebac0f text on a black background

contrast 10.44:1

Card sample

#ebac0f text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ebac0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ebac0f in the Color Lab