Skip to content

#e4af2c

a balanced, electric yellow · warm · closest name: orange

RGB
228, 175, 44
HSL
43°, 77%, 53%
CMYK
0, 23, 81, 11
Luminance
0.4734

Every format

HEX#e4af2c
RGBrgb(228, 175, 44)
HSLhsl(43, 77%, 53%)
CMYKcmyk(0%, 23%, 81%, 11%)
LABlab(74.4 7.9 68.7)
LCHlch(74.4 69.2 83.5)
OKLCHoklch(0.782 0.149 84.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e4af2c on white: 2.01:1
AA ✗ fail · AA-large · AAA
Aa
#e4af2c on black: 10.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red89.4%
Green68.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta23.2%
Yellow80.7%
Key (black)10.6%

Color previews

#e4af2c text on a black background

contrast 10.47:1

Card sample

#e4af2c text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(228, 175, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(228, 175, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #e4af2c;
background: linear-gradient(135deg, #e4af2c, #9EE42C);

Monochromatic scale

Palettes built from #e4af2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e4af2c in the Color Lab