Skip to content

#ebab21

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

RGB
235, 171, 33
HSL
41°, 84%, 53%
CMYK
0, 27, 86, 8
Luminance
0.4690

Every format

HEX#ebab21
RGBrgb(235, 171, 33)
HSLhsl(41, 84%, 53%)
CMYKcmyk(0%, 27%, 86%, 8%)
LABlab(74.1 12.7 72.0)
LCHlch(74.1 73.1 80.0)
OKLCHoklch(0.782 0.155 80.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ebab21 on white: 2.02:1
AA ✗ fail · AA-large · AAA
Aa
#ebab21 on black: 10.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.2%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta27.2%
Yellow86.0%
Key (black)7.8%

Color previews

#ebab21 text on a black background

contrast 10.38:1

Card sample

#ebab21 text on a white background

contrast 2.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ebab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ebab21 in the Color Lab