Skip to content

#e2df56

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

RGB
226, 223, 86
HSL
59°, 71%, 61%
CMYK
0, 1, 62, 11
Luminance
0.6962

Every format

HEX#e2df56
RGBrgb(226, 223, 86)
HSLhsl(59, 71%, 61%)
CMYKcmyk(0%, 1%, 62%, 11%)
LABlab(86.8 -15.6 65.3)
LCHlch(86.8 67.1 103.4)
OKLCHoklch(0.881 0.156 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e2df56 on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#e2df56 on black: 14.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red88.6%
Green87.5%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta1.3%
Yellow61.9%
Key (black)11.4%

Color previews

#e2df56 text on a black background

contrast 14.92:1

Card sample

#e2df56 text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e2df56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2df56 in the Color Lab