Skip to content

#efcc21

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

RGB
239, 204, 33
HSL
50°, 87%, 53%
CMYK
0, 15, 86, 6
Luminance
0.6165

Every format

HEX#efcc21
RGBrgb(239, 204, 33)
HSLhsl(50, 87%, 53%)
CMYKcmyk(0%, 15%, 86%, 6%)
LABlab(82.7 -2.8 79.1)
LCHlch(82.7 79.1 92.0)
OKLCHoklch(0.850 0.169 95.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#efcc21 on white: 1.58:1
AA ✗ fail · AA-large · AAA
Aa
#efcc21 on black: 13.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red93.7%
Green80.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta14.6%
Yellow86.2%
Key (black)6.3%

Color previews

#efcc21 text on a black background

contrast 13.33:1

Card sample

#efcc21 text on a white background

contrast 1.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #efcc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #efcc21 in the Color Lab