Skip to content

#eccf21

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

RGB
236, 207, 33
HSL
51°, 84%, 53%
CMYK
0, 12, 86, 8
Luminance
0.6257

Every format

HEX#eccf21
RGBrgb(236, 207, 33)
HSLhsl(51, 84%, 53%)
CMYKcmyk(0%, 12%, 86%, 8%)
LABlab(83.2 -5.6 79.3)
LCHlch(83.2 79.5 94.0)
OKLCHoklch(0.854 0.171 98.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccf21 on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#eccf21 on black: 13.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green81.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta12.3%
Yellow86.0%
Key (black)7.5%

Color previews

#eccf21 text on a black background

contrast 13.51:1

Card sample

#eccf21 text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccf21 in the Color Lab