Skip to content

#5b8b21

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

RGB
91, 139, 33
HSL
87°, 62%, 34%
CMYK
35, 0, 76, 46
Luminance
0.2080

Every format

HEX#5b8b21
RGBrgb(91, 139, 33)
HSLhsl(87, 62%, 34%)
CMYKcmyk(35%, 0%, 76%, 46%)
LABlab(52.7 -33.3 48.2)
LCHlch(52.7 58.6 124.6)
OKLCHoklch(0.581 0.143 131.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b8b21 on white: 4.07:1
AA ✗ fail · AA-large · AAA
Aa
#5b8b21 on black: 5.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red35.7%
Green54.5%
Blue12.9%

CMYK percentages

Cyan34.5%
Magenta0.0%
Yellow76.3%
Key (black)45.5%

Color previews

#5b8b21 text on a black background

contrast 5.16:1

Card sample

#5b8b21 text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5b8b21;
Background color
Panel with #5b8b21 background
background-color: #5b8b21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5b8b21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(91, 139, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 139, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b8b21;
background: linear-gradient(135deg, #5b8b21, #218B2E);

Monochromatic scale

Palettes built from #5b8b21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5b8b21 in the Color Lab