Skip to content

#eccf1b

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

RGB
236, 207, 27
HSL
52°, 85%, 52%
CMYK
0, 12, 89, 8
Luminance
0.6254

Every format

HEX#eccf1b
RGBrgb(236, 207, 27)
HSLhsl(52, 85%, 52%)
CMYKcmyk(0%, 12%, 89%, 8%)
LABlab(83.2 -5.7 80.5)
LCHlch(83.2 80.7 94.0)
OKLCHoklch(0.853 0.172 98.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green81.2%
Blue10.6%

CMYK percentages

Cyan0.0%
Magenta12.3%
Yellow88.6%
Key (black)7.5%

Color previews

#eccf1b text on a black background

contrast 13.51:1

Card sample

#eccf1b text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccf1b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccf1b in the Color Lab