Skip to content

#9cab21

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

RGB
156, 171, 33
HSL
67°, 68%, 40%
CMYK
9, 0, 81, 33
Luminance
0.3630

Every format

HEX#9cab21
RGBrgb(156, 171, 33)
HSLhsl(67, 68%, 40%)
CMYKcmyk(9%, 0%, 81%, 33%)
LABlab(66.8 -21.8 62.8)
LCHlch(66.8 66.5 109.2)
OKLCHoklch(0.706 0.152 116.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red61.2%
Green67.1%
Blue12.9%

CMYK percentages

Cyan8.8%
Magenta0.0%
Yellow80.7%
Key (black)32.9%

Color previews

#9cab21 text on a black background

contrast 8.26:1

Card sample

#9cab21 text on a white background

contrast 2.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9cab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9cab21 in the Color Lab