Skip to content

#a7af39

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

RGB
167, 175, 57
HSL
64°, 51%, 46%
CMYK
5, 0, 67, 31
Luminance
0.3917

Every format

HEX#a7af39
RGBrgb(167, 175, 57)
HSLhsl(64, 51%, 46%)
CMYKcmyk(5%, 0%, 67%, 31%)
LABlab(68.9 -18.0 56.9)
LCHlch(68.9 59.7 107.6)
OKLCHoklch(0.726 0.139 113.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a7af39 on white: 2.38:1
AA ✗ fail · AA-large · AAA
Aa
#a7af39 on black: 8.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red65.5%
Green68.6%
Blue22.4%

CMYK percentages

Cyan4.6%
Magenta0.0%
Yellow67.4%
Key (black)31.4%

Color previews

#a7af39 text on a black background

contrast 8.83:1

Card sample

#a7af39 text on a white background

contrast 2.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(167, 175, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(167, 175, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a7af39;
background: linear-gradient(135deg, #a7af39, #58AF39);

Monochromatic scale

Palettes built from #a7af39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a7af39 in the Color Lab