Skip to content

#e7af2c

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

RGB
231, 175, 44
HSL
42°, 80%, 54%
CMYK
0, 24, 81, 9
Luminance
0.4783

Every format

HEX#e7af2c
RGBrgb(231, 175, 44)
HSLhsl(42, 80%, 54%)
CMYKcmyk(0%, 24%, 81%, 9%)
LABlab(74.7 9.2 69.1)
LCHlch(74.7 69.8 82.4)
OKLCHoklch(0.785 0.150 83.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#e7af2c on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#e7af2c on black: 10.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red90.6%
Green68.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta24.2%
Yellow81.0%
Key (black)9.4%

Color previews

#e7af2c text on a black background

contrast 10.57:1

Card sample

#e7af2c text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #e7af2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #e7af2c in the Color Lab