Skip to content

#eccb2f

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

RGB
236, 203, 47
HSL
50°, 83%, 56%
CMYK
0, 14, 80, 8
Luminance
0.6075

Every format

HEX#eccb2f
RGBrgb(236, 203, 47)
HSLhsl(50, 83%, 56%)
CMYKcmyk(0%, 14%, 80%, 8%)
LABlab(82.3 -3.1 75.0)
LCHlch(82.3 75.1 92.4)
OKLCHoklch(0.846 0.163 96.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccb2f on white: 1.60:1
AA ✗ fail · AA-large · AAA
Aa
#eccb2f on black: 13.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green79.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta14.0%
Yellow80.1%
Key (black)7.5%

Color previews

#eccb2f text on a black background

contrast 13.15:1

Card sample

#eccb2f text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 203, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 203, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eccb2f;
background: linear-gradient(135deg, #eccb2f, #8FEC2F);

Monochromatic scale

Palettes built from #eccb2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccb2f in the Color Lab