Skip to content

#a2af2f

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

RGB
162, 175, 47
HSL
66°, 58%, 44%
CMYK
7, 0, 73, 31
Luminance
0.3855

Every format

HEX#a2af2f
RGBrgb(162, 175, 47)
HSLhsl(66, 58%, 44%)
CMYKcmyk(7%, 0%, 73%, 31%)
LABlab(68.4 -20.7 60.0)
LCHlch(68.4 63.5 109.0)
OKLCHoklch(0.721 0.147 115.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2af2f on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#a2af2f on black: 8.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green68.6%
Blue18.4%

CMYK percentages

Cyan7.4%
Magenta0.0%
Yellow73.1%
Key (black)31.4%

Color previews

#a2af2f text on a black background

contrast 8.71:1

Card sample

#a2af2f text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2af2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2af2f in the Color Lab