Skip to content

#a2ba2f

a balanced, vivid green · cool · closest name: olivedrab

RGB
162, 186, 47
HSL
70°, 60%, 46%
CMYK
13, 0, 75, 27
Luminance
0.4300

Every format

HEX#a2ba2f
RGBrgb(162, 186, 47)
HSLhsl(70, 60%, 46%)
CMYKcmyk(13%, 0%, 75%, 27%)
LABlab(71.6 -26.1 63.0)
LCHlch(71.6 68.2 112.5)
OKLCHoklch(0.746 0.160 119.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2ba2f on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#a2ba2f on black: 9.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green72.9%
Blue18.4%

CMYK percentages

Cyan12.9%
Magenta0.0%
Yellow74.7%
Key (black)27.1%

Color previews

#a2ba2f text on a black background

contrast 9.60:1

Card sample

#a2ba2f text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2ba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2ba2f in the Color Lab