Skip to content

#ecc77c

a light, vivid yellow · warm · closest name: khaki

RGB
236, 199, 124
HSL
40°, 75%, 71%
CMYK
0, 16, 48, 8
Luminance
0.6013

Every format

HEX#ecc77c
RGBrgb(236, 199, 124)
HSLhsl(40, 75%, 71%)
CMYKcmyk(0%, 16%, 48%, 8%)
LABlab(81.9 3.6 42.3)
LCHlch(81.9 42.4 85.1)
OKLCHoklch(0.846 0.103 84.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc77c on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#ecc77c on black: 13.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green78.0%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta15.7%
Yellow47.5%
Key (black)7.5%

Color previews

#ecc77c text on a black background

contrast 13.03:1

Card sample

#ecc77c text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc77c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc77c in the Color Lab