Skip to content

#e2df98

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

RGB
226, 223, 152
HSL
58°, 56%, 74%
CMYK
0, 1, 33, 11
Luminance
0.7121

Every format

HEX#e2df98
RGBrgb(226, 223, 152)
HSLhsl(58, 56%, 74%)
CMYKcmyk(0%, 1%, 33%, 11%)
LABlab(87.6 -9.6 35.2)
LCHlch(87.6 36.5 105.2)
OKLCHoklch(0.890 0.091 106.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e2df98 on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#e2df98 on black: 15.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red88.6%
Green87.5%
Blue59.6%

CMYK percentages

Cyan0.0%
Magenta1.3%
Yellow32.7%
Key (black)11.4%

Color previews

#e2df98 text on a black background

contrast 15.24:1

Card sample

#e2df98 text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e2df98

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2df98 in the Color Lab