Skip to content

#ac982f

a dark, vivid yellow · cool · closest name: olive

RGB
172, 152, 47
HSL
50°, 57%, 43%
CMYK
0, 12, 73, 33
Luminance
0.3143

Every format

HEX#ac982f
RGBrgb(172, 152, 47)
HSLhsl(50, 57%, 43%)
CMYKcmyk(0%, 12%, 73%, 33%)
LABlab(62.9 -4.3 55.0)
LCHlch(62.9 55.1 94.5)
OKLCHoklch(0.678 0.123 98.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac982f on white: 2.88:1
AA ✗ fail · AA-large · AAA
Aa
#ac982f on black: 7.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green59.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta11.6%
Yellow72.7%
Key (black)32.5%

Color previews

#ac982f text on a black background

contrast 7.29:1

Card sample

#ac982f text on a white background

contrast 2.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 152, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 152, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac982f;
background: linear-gradient(135deg, #ac982f, #6DAC2F);

Monochromatic scale

Palettes built from #ac982f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac982f in the Color Lab