Skip to content

#a4af2f

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

RGB
164, 175, 47
HSL
65°, 58%, 44%
CMYK
6, 0, 73, 31
Luminance
0.3876

Every format

HEX#a4af2f
RGBrgb(164, 175, 47)
HSLhsl(65, 58%, 44%)
CMYKcmyk(6%, 0%, 73%, 31%)
LABlab(68.6 -19.8 60.3)
LCHlch(68.6 63.4 108.2)
OKLCHoklch(0.722 0.146 114.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a4af2f on white: 2.40:1
AA ✗ fail · AA-large · AAA
Aa
#a4af2f on black: 8.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green68.6%
Blue18.4%

CMYK percentages

Cyan6.3%
Magenta0.0%
Yellow73.1%
Key (black)31.4%

Color previews

#a4af2f text on a black background

contrast 8.75:1

Card sample

#a4af2f text on a white background

contrast 2.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a4af2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a4af2f in the Color Lab