Skip to content

#e2db4f

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

RGB
226, 219, 79
HSL
57°, 72%, 60%
CMYK
0, 3, 65, 11
Luminance
0.6740

Every format

HEX#e2db4f
RGBrgb(226, 219, 79)
HSLhsl(57, 72%, 60%)
CMYKcmyk(0%, 3%, 65%, 11%)
LABlab(85.7 -14.0 66.9)
LCHlch(85.7 68.4 101.8)
OKLCHoklch(0.872 0.157 106.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e2db4f on white: 1.45:1
AA ✗ fail · AA-large · AAA
Aa
#e2db4f on black: 14.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red88.6%
Green85.9%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta3.1%
Yellow65.0%
Key (black)11.4%

Color previews

#e2db4f text on a black background

contrast 14.48:1

Card sample

#e2db4f text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(226, 219, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(226, 219, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e2db4f;
background: linear-gradient(135deg, #e2db4f, #87E24F);

Monochromatic scale

Palettes built from #e2db4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2db4f in the Color Lab