Skip to content

#efef21

a balanced, electric yellow · cool · closest name: yellow

RGB
239, 239, 33
HSL
60°, 87%, 53%
CMYK
0, 0, 86, 6
Luminance
0.8019

Every format

HEX#efef21
RGBrgb(239, 239, 33)
HSLhsl(60, 87%, 53%)
CMYKcmyk(0%, 0%, 86%, 6%)
LABlab(91.8 -20.1 86.3)
LCHlch(91.8 88.6 103.1)
OKLCHoklch(0.922 0.196 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#efef21 on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#efef21 on black: 17.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red93.7%
Green93.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow86.2%
Key (black)6.3%

Color previews

#efef21 text on a black background

contrast 17.04:1

Card sample

#efef21 text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #efef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #efef21 in the Color Lab