Skip to content

#ac9c2f

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

RGB
172, 156, 47
HSL
52°, 57%, 43%
CMYK
0, 9, 73, 33
Luminance
0.3275

Every format

HEX#ac9c2f
RGBrgb(172, 156, 47)
HSLhsl(52, 57%, 43%)
CMYKcmyk(0%, 9%, 73%, 33%)
LABlab(64.0 -6.5 56.0)
LCHlch(64.0 56.4 96.6)
OKLCHoklch(0.687 0.126 100.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac9c2f on white: 2.78:1
AA ✗ fail · AA-large · AAA
Aa
#ac9c2f on black: 7.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green61.2%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta9.3%
Yellow72.7%
Key (black)32.5%

Color previews

#ac9c2f text on a black background

contrast 7.55:1

Card sample

#ac9c2f text on a white background

contrast 2.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac9c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac9c2f in the Color Lab