Skip to content

#a5cf2f

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

RGB
165, 207, 47
HSL
76°, 63%, 50%
CMYK
20, 0, 77, 19
Luminance
0.5283

Every format

HEX#a5cf2f
RGBrgb(165, 207, 47)
HSLhsl(76, 63%, 50%)
CMYKcmyk(20%, 0%, 77%, 19%)
LABlab(77.8 -34.8 68.9)
LCHlch(77.8 77.2 116.8)
OKLCHoklch(0.797 0.182 123.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a5cf2f on white: 1.82:1
AA ✗ fail · AA-large · AAA
Aa
#a5cf2f on black: 11.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.7%
Green81.2%
Blue18.4%

CMYK percentages

Cyan20.3%
Magenta0.0%
Yellow77.3%
Key (black)18.8%

Color previews

#a5cf2f text on a black background

contrast 11.57:1

Card sample

#a5cf2f text on a white background

contrast 1.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a5cf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a5cf2f in the Color Lab