Skip to content

#9fac2f

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

RGB
159, 172, 47
HSL
66°, 57%, 43%
CMYK
8, 0, 73, 33
Luminance
0.3708

Every format

HEX#9fac2f
RGBrgb(159, 172, 47)
HSLhsl(66, 57%, 43%)
CMYKcmyk(8%, 0%, 73%, 33%)
LABlab(67.3 -20.4 58.9)
LCHlch(67.3 62.4 109.1)
OKLCHoklch(0.711 0.145 115.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9fac2f on white: 2.50:1
AA ✗ fail · AA-large · AAA
Aa
#9fac2f on black: 8.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red62.4%
Green67.5%
Blue18.4%

CMYK percentages

Cyan7.6%
Magenta0.0%
Yellow72.7%
Key (black)32.5%

Color previews

#9fac2f text on a black background

contrast 8.42:1

Card sample

#9fac2f text on a white background

contrast 2.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 172, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 172, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9fac2f;
background: linear-gradient(135deg, #9fac2f, #4CAC2F);

Monochromatic scale

Palettes built from #9fac2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9fac2f in the Color Lab