Skip to content

#efab21

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

RGB
239, 171, 33
HSL
40°, 87%, 53%
CMYK
0, 29, 86, 6
Luminance
0.4759

Every format

HEX#efab21
RGBrgb(239, 171, 33)
HSLhsl(40, 87%, 53%)
CMYKcmyk(0%, 29%, 86%, 6%)
LABlab(74.6 14.4 72.5)
LCHlch(74.6 73.9 78.7)
OKLCHoklch(0.786 0.156 78.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#efab21 on white: 2.00:1
AA ✗ fail · AA-large · AAA
Aa
#efab21 on black: 10.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red93.7%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta28.5%
Yellow86.2%
Key (black)6.3%

Color previews

#efab21 text on a black background

contrast 10.52:1

Card sample

#efab21 text on a white background

contrast 2.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #efab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #efab21 in the Color Lab