Skip to content

#e4df97

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

RGB
228, 223, 151
HSL
56°, 59%, 74%
CMYK
0, 2, 34, 11
Luminance
0.7150

Every format

HEX#e4df97
RGBrgb(228, 223, 151)
HSLhsl(56, 59%, 74%)
CMYKcmyk(0%, 2%, 34%, 11%)
LABlab(87.7 -8.9 36.0)
LCHlch(87.7 37.0 104.0)
OKLCHoklch(0.891 0.092 104.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e4df97 on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#e4df97 on black: 15.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red89.4%
Green87.5%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta2.2%
Yellow33.8%
Key (black)10.6%

Color previews

#e4df97 text on a black background

contrast 15.30:1

Card sample

#e4df97 text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e4df97

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e4df97 in the Color Lab