Skip to content

#eccb5f

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

RGB
236, 203, 95
HSL
46°, 79%, 65%
CMYK
0, 14, 60, 8
Luminance
0.6137

Every format

HEX#eccb5f
RGBrgb(236, 203, 95)
HSLhsl(46, 79%, 65%)
CMYKcmyk(0%, 14%, 60%, 8%)
LABlab(82.6 -0.8 57.0)
LCHlch(82.6 57.0 90.8)
OKLCHoklch(0.850 0.132 92.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccb5f on white: 1.58:1
AA ✗ fail · AA-large · AAA
Aa
#eccb5f on black: 13.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green79.6%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta14.0%
Yellow59.7%
Key (black)7.5%

Color previews

#eccb5f text on a black background

contrast 13.27:1

Card sample

#eccb5f text on a white background

contrast 1.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccb5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccb5f in the Color Lab