Skip to content

#31ac21

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

RGB
49, 172, 33
HSL
113°, 68%, 40%
CMYK
72, 0, 81, 33
Luminance
0.3027

Every format

HEX#31ac21
RGBrgb(49, 172, 33)
HSLhsl(113, 68%, 40%)
CMYKcmyk(72%, 0%, 81%, 33%)
LABlab(61.9 -58.0 56.4)
LCHlch(61.9 80.9 135.8)
OKLCHoklch(0.652 0.202 141.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#31ac21 on white: 2.98:1
AA ✗ fail · AA-large · AAA
Aa
#31ac21 on black: 7.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.2%
Green67.5%
Blue12.9%

CMYK percentages

Cyan71.5%
Magenta0.0%
Yellow80.8%
Key (black)32.5%

Color previews

#31ac21 text on a black background

contrast 7.05:1

Card sample

#31ac21 text on a white background

contrast 2.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #31ac21;
Background color
Panel with #31ac21 background
background-color: #31ac21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #31ac21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(49, 172, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 172, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #31ac21;
background: linear-gradient(135deg, #31ac21, #21AC6E);

Monochromatic scale

Palettes built from #31ac21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #31ac21 in the Color Lab