Skip to content

#eccd52

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

RGB
236, 205, 82
HSL
48°, 80%, 62%
CMYK
0, 13, 65, 8
Luminance
0.6210

Every format

HEX#eccd52
RGBrgb(236, 205, 82)
HSLhsl(48, 80%, 62%)
CMYKcmyk(0%, 13%, 65%, 8%)
LABlab(83.0 -2.6 63.1)
LCHlch(83.0 63.2 92.4)
OKLCHoklch(0.852 0.143 95.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccd52 on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#eccd52 on black: 13.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green80.4%
Blue32.2%

CMYK percentages

Cyan0.0%
Magenta13.1%
Yellow65.3%
Key (black)7.5%

Color previews

#eccd52 text on a black background

contrast 13.42:1

Card sample

#eccd52 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccd52

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccd52 in the Color Lab