Skip to content

#eccf28

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

RGB
236, 207, 40
HSL
51°, 84%, 54%
CMYK
0, 12, 83, 8
Luminance
0.6261

Every format

HEX#eccf28
RGBrgb(236, 207, 40)
HSLhsl(51, 84%, 54%)
CMYKcmyk(0%, 12%, 83%, 8%)
LABlab(83.2 -5.4 77.7)
LCHlch(83.2 77.9 94.0)
OKLCHoklch(0.854 0.168 98.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green81.2%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta12.3%
Yellow83.1%
Key (black)7.5%

Color previews

#eccf28 text on a black background

contrast 13.52:1

Card sample

#eccf28 text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccf28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccf28 in the Color Lab