Skip to content

#eccc2c

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

RGB
236, 204, 44
HSL
50°, 84%, 55%
CMYK
0, 14, 81, 8
Luminance
0.6120

Every format

HEX#eccc2c
RGBrgb(236, 204, 44)
HSLhsl(50, 84%, 55%)
CMYKcmyk(0%, 14%, 81%, 8%)
LABlab(82.5 -3.8 76.1)
LCHlch(82.5 76.2 92.8)
OKLCHoklch(0.848 0.165 96.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccc2c on white: 1.59:1
AA ✗ fail · AA-large · AAA
Aa
#eccc2c on black: 13.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green80.0%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta13.6%
Yellow81.4%
Key (black)7.5%

Color previews

#eccc2c text on a black background

contrast 13.24:1

Card sample

#eccc2c text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccc2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccc2c in the Color Lab