Skip to content

#eccc21

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

RGB
236, 204, 33
HSL
51°, 84%, 53%
CMYK
0, 14, 86, 8
Luminance
0.6113

Every format

HEX#eccc21
RGBrgb(236, 204, 33)
HSLhsl(51, 84%, 53%)
CMYKcmyk(0%, 14%, 86%, 8%)
LABlab(82.5 -4.0 78.7)
LCHlch(82.5 78.8 92.9)
OKLCHoklch(0.847 0.169 97.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccc21 on white: 1.59:1
AA ✗ fail · AA-large · AAA
Aa
#eccc21 on black: 13.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green80.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta13.6%
Yellow86.0%
Key (black)7.5%

Color previews

#eccc21 text on a black background

contrast 13.23:1

Card sample

#eccc21 text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccc21 in the Color Lab