Skip to content

#a2ac2d

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

RGB
162, 172, 45
HSL
65°, 59%, 43%
CMYK
6, 0, 74, 33
Luminance
0.3738

Every format

HEX#a2ac2d
RGBrgb(162, 172, 45)
HSLhsl(65, 59%, 43%)
CMYKcmyk(6%, 0%, 74%, 33%)
LABlab(67.6 -19.3 59.9)
LCHlch(67.6 62.9 107.8)
OKLCHoklch(0.714 0.145 114.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2ac2d on white: 2.48:1
AA ✗ fail · AA-large · AAA
Aa
#a2ac2d on black: 8.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green67.5%
Blue17.6%

CMYK percentages

Cyan5.8%
Magenta0.0%
Yellow73.8%
Key (black)32.5%

Color previews

#a2ac2d text on a black background

contrast 8.48:1

Card sample

#a2ac2d text on a white background

contrast 2.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 172, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 172, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2ac2d;
background: linear-gradient(135deg, #a2ac2d, #4DAC2D);

Monochromatic scale

Palettes built from #a2ac2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2ac2d in the Color Lab