Skip to content

#ecdf92

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

RGB
236, 223, 146
HSL
51°, 70%, 75%
CMYK
0, 6, 38, 8
Luminance
0.7268

Every format

HEX#ecdf92
RGBrgb(236, 223, 146)
HSLhsl(51, 70%, 75%)
CMYKcmyk(0%, 6%, 38%, 8%)
LABlab(88.3 -6.4 39.3)
LCHlch(88.3 39.9 99.3)
OKLCHoklch(0.897 0.098 99.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecdf92 on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#ecdf92 on black: 15.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green87.5%
Blue57.3%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow38.1%
Key (black)7.5%

Color previews

#ecdf92 text on a black background

contrast 15.54:1

Card sample

#ecdf92 text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf92

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf92 in the Color Lab