Skip to content

#a0af2f

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

RGB
160, 175, 47
HSL
67°, 58%, 44%
CMYK
9, 0, 73, 31
Luminance
0.3834

Every format

HEX#a0af2f
RGBrgb(160, 175, 47)
HSLhsl(67, 58%, 44%)
CMYKcmyk(9%, 0%, 73%, 31%)
LABlab(68.3 -21.5 59.9)
LCHlch(68.3 63.6 109.8)
OKLCHoklch(0.719 0.148 116.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a0af2f on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#a0af2f on black: 8.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.7%
Green68.6%
Blue18.4%

CMYK percentages

Cyan8.6%
Magenta0.0%
Yellow73.1%
Key (black)31.4%

Color previews

#a0af2f text on a black background

contrast 8.67:1

Card sample

#a0af2f text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a0af2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a0af2f in the Color Lab