Skip to content

#ac9c21

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

RGB
172, 156, 33
HSL
53°, 68%, 40%
CMYK
0, 9, 81, 33
Luminance
0.3266

Every format

HEX#ac9c21
RGBrgb(172, 156, 33)
HSLhsl(53, 68%, 40%)
CMYKcmyk(0%, 9%, 81%, 33%)
LABlab(63.9 -7.0 60.8)
LCHlch(63.9 61.2 96.6)
OKLCHoklch(0.686 0.134 101.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac9c21 on white: 2.79:1
AA ✗ fail · AA-large · AAA
Aa
#ac9c21 on black: 7.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green61.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta9.3%
Yellow80.8%
Key (black)32.5%

Color previews

#ac9c21 text on a black background

contrast 7.53:1

Card sample

#ac9c21 text on a white background

contrast 2.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac9c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac9c21 in the Color Lab