Skip to content

#eccb2d

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

RGB
236, 203, 45
HSL
50°, 83%, 55%
CMYK
0, 14, 81, 8
Luminance
0.6073

Every format

HEX#eccb2d
RGBrgb(236, 203, 45)
HSLhsl(50, 83%, 55%)
CMYKcmyk(0%, 14%, 81%, 8%)
LABlab(82.2 -3.2 75.6)
LCHlch(82.2 75.6 92.4)
OKLCHoklch(0.846 0.164 96.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green79.6%
Blue17.6%

CMYK percentages

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

Color previews

#eccb2d text on a black background

contrast 13.15:1

Card sample

#eccb2d text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccb2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccb2d in the Color Lab