Skip to content

#ac7f21

a dark, vivid yellow · warm · closest name: peru

RGB
172, 127, 33
HSL
41°, 68%, 40%
CMYK
0, 26, 81, 33
Luminance
0.2406

Every format

HEX#ac7f21
RGBrgb(172, 127, 33)
HSLhsl(41, 68%, 40%)
CMYKcmyk(0%, 26%, 81%, 33%)
LABlab(56.1 8.8 53.9)
LCHlch(56.1 54.6 80.7)
OKLCHoklch(0.625 0.118 80.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac7f21 on white: 3.61:1
AA ✗ fail · AA-large · AAA
Aa
#ac7f21 on black: 5.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green49.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta26.2%
Yellow80.8%
Key (black)32.5%

Color previews

#ac7f21 text on a black background

contrast 5.81:1

Card sample

#ac7f21 text on a white background

contrast 3.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac7f21;
background: linear-gradient(135deg, #ac7f21, #7CAC21);

Monochromatic scale

Palettes built from #ac7f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac7f21 in the Color Lab