Skip to content

#a5ba2f

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

RGB
165, 186, 47
HSL
69°, 60%, 46%
CMYK
11, 0, 75, 27
Luminance
0.4332

Every format

HEX#a5ba2f
RGBrgb(165, 186, 47)
HSLhsl(69, 60%, 46%)
CMYKcmyk(11%, 0%, 75%, 27%)
LABlab(71.8 -24.8 63.3)
LCHlch(71.8 68.0 111.4)
OKLCHoklch(0.748 0.158 118.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a5ba2f on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#a5ba2f on black: 9.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.7%
Green72.9%
Blue18.4%

CMYK percentages

Cyan11.3%
Magenta0.0%
Yellow74.7%
Key (black)27.1%

Color previews

#a5ba2f text on a black background

contrast 9.66:1

Card sample

#a5ba2f text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a5ba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a5ba2f in the Color Lab