Skip to content

#e2ba4f

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

RGB
226, 186, 79
HSL
44°, 72%, 60%
CMYK
0, 18, 65, 11
Luminance
0.5185

Every format

HEX#e2ba4f
RGBrgb(226, 186, 79)
HSLhsl(44, 72%, 60%)
CMYKcmyk(0%, 18%, 65%, 11%)
LABlab(77.2 2.8 58.0)
LCHlch(77.2 58.0 87.2)
OKLCHoklch(0.804 0.132 88.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e2ba4f on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#e2ba4f on black: 11.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red88.6%
Green72.9%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta17.7%
Yellow65.0%
Key (black)11.4%

Color previews

#e2ba4f text on a black background

contrast 11.37:1

Card sample

#e2ba4f text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e2ba4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e2ba4f in the Color Lab