Skip to content

#9cbc21

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

RGB
156, 188, 33
HSL
72°, 70%, 43%
CMYK
17, 0, 82, 26
Luminance
0.4314

Every format

HEX#9cbc21
RGBrgb(156, 188, 33)
HSLhsl(72, 70%, 43%)
CMYKcmyk(17%, 0%, 82%, 26%)
LABlab(71.7 -30.1 67.1)
LCHlch(71.7 73.5 114.2)
OKLCHoklch(0.745 0.171 121.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9cbc21 on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#9cbc21 on black: 9.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.2%
Green73.7%
Blue12.9%

CMYK percentages

Cyan17.0%
Magenta0.0%
Yellow82.4%
Key (black)26.3%

Color previews

#9cbc21 text on a black background

contrast 9.63:1

Card sample

#9cbc21 text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9cbc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9cbc21 in the Color Lab