Skip to content

#9cab2f

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

RGB
156, 171, 47
HSL
67°, 57%, 43%
CMYK
9, 0, 73, 33
Luminance
0.3640

Every format

HEX#9cab2f
RGBrgb(156, 171, 47)
HSLhsl(67, 57%, 43%)
CMYKcmyk(9%, 0%, 73%, 33%)
LABlab(66.8 -21.2 58.4)
LCHlch(66.8 62.1 110.0)
OKLCHoklch(0.707 0.144 116.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9cab2f on white: 2.54:1
AA ✗ fail · AA-large · AAA
Aa
#9cab2f on black: 8.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green67.1%
Blue18.4%

CMYK percentages

Cyan8.8%
Magenta0.0%
Yellow72.5%
Key (black)32.9%

Color previews

#9cab2f text on a black background

contrast 8.28:1

Card sample

#9cab2f text on a white background

contrast 2.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(156, 171, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(156, 171, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9cab2f;
background: linear-gradient(135deg, #9cab2f, #49AB2F);

Monochromatic scale

Palettes built from #9cab2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9cab2f in the Color Lab