Skip to content

#e4cf49

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

RGB
228, 207, 73
HSL
52°, 74%, 59%
CMYK
0, 9, 68, 11
Luminance
0.6160

Every format

HEX#e4cf49
RGBrgb(228, 207, 73)
HSLhsl(52, 74%, 59%)
CMYKcmyk(0%, 9%, 68%, 11%)
LABlab(82.7 -7.5 66.3)
LCHlch(82.7 66.7 96.4)
OKLCHoklch(0.848 0.151 100.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e4cf49 on white: 1.58:1
AA ✗ fail · AA-large · AAA
Aa
#e4cf49 on black: 13.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red89.4%
Green81.2%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta9.2%
Yellow68.0%
Key (black)10.6%

Color previews

#e4cf49 text on a black background

contrast 13.32:1

Card sample

#e4cf49 text on a white background

contrast 1.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(228, 207, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(228, 207, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e4cf49;
background: linear-gradient(135deg, #e4cf49, #92E449);

Monochromatic scale

Palettes built from #e4cf49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e4cf49 in the Color Lab