Skip to content

#ebac1c

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

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

Every format

HEX#ebac1c
RGBrgb(235, 172, 28)
HSLhsl(42, 84%, 52%)
CMYKcmyk(0%, 27%, 88%, 8%)
LABlab(74.3 12.1 73.3)
LCHlch(74.3 74.3 80.6)
OKLCHoklch(0.783 0.156 81.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.2%
Green67.5%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta26.8%
Yellow88.1%
Key (black)7.8%

Color previews

#ebac1c text on a black background

contrast 10.45:1

Card sample

#ebac1c text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ebac1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ebac1c in the Color Lab