Skip to content

#9fba2d

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

RGB
159, 186, 45
HSL
72°, 61%, 45%
CMYK
15, 0, 76, 27
Luminance
0.4268

Every format

HEX#9fba2d
RGBrgb(159, 186, 45)
HSLhsl(72, 61%, 45%)
CMYKcmyk(15%, 0%, 76%, 27%)
LABlab(71.3 -27.4 63.4)
LCHlch(71.3 69.1 113.4)
OKLCHoklch(0.744 0.162 120.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9fba2d on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#9fba2d on black: 9.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green72.9%
Blue17.6%

CMYK percentages

Cyan14.5%
Magenta0.0%
Yellow75.8%
Key (black)27.1%

Color previews

#9fba2d text on a black background

contrast 9.54:1

Card sample

#9fba2d text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 186, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 186, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9fba2d;
background: linear-gradient(135deg, #9fba2d, #41BA2D);

Monochromatic scale

Palettes built from #9fba2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9fba2d in the Color Lab