Skip to content

#eccc56

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

RGB
236, 204, 86
HSL
47°, 80%, 63%
CMYK
0, 14, 64, 8
Luminance
0.6169

Every format

HEX#eccc56
RGBrgb(236, 204, 86)
HSLhsl(47, 80%, 63%)
CMYKcmyk(0%, 14%, 64%, 8%)
LABlab(82.8 -1.9 61.2)
LCHlch(82.8 61.2 91.8)
OKLCHoklch(0.851 0.140 94.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccc56 on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#eccc56 on black: 13.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green80.0%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta13.6%
Yellow63.6%
Key (black)7.5%

Color previews

#eccc56 text on a black background

contrast 13.34:1

Card sample

#eccc56 text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccc56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccc56 in the Color Lab