Skip to content

#ecdf86

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

RGB
236, 223, 134
HSL
52°, 73%, 73%
CMYK
0, 6, 43, 8
Luminance
0.7233

Every format

HEX#ecdf86
RGBrgb(236, 223, 134)
HSLhsl(52, 73%, 73%)
CMYKcmyk(0%, 6%, 43%, 8%)
LABlab(88.1 -7.7 45.1)
LCHlch(88.1 45.7 99.7)
OKLCHoklch(0.895 0.111 101.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecdf86 on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#ecdf86 on black: 15.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green87.5%
Blue52.5%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow43.2%
Key (black)7.5%

Color previews

#ecdf86 text on a black background

contrast 15.47:1

Card sample

#ecdf86 text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf86

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf86 in the Color Lab