Skip to content

#31af49

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

RGB
49, 175, 73
HSL
131°, 56%, 44%
CMYK
72, 0, 58, 31
Luminance
0.3179

Every format

HEX#31af49
RGBrgb(49, 175, 73)
HSLhsl(131, 56%, 44%)
CMYKcmyk(72%, 0%, 58%, 31%)
LABlab(63.2 -55.2 42.0)
LCHlch(63.2 69.3 142.8)
OKLCHoklch(0.664 0.179 146.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#31af49 on white: 2.85:1
AA ✗ fail · AA-large · AAA
Aa
#31af49 on black: 7.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.2%
Green68.6%
Blue28.6%

CMYK percentages

Cyan72.0%
Magenta0.0%
Yellow58.3%
Key (black)31.4%

Color previews

#31af49 text on a black background

contrast 7.36:1

Card sample

#31af49 text on a white background

contrast 2.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(49, 175, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 175, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #31af49;
background: linear-gradient(135deg, #31af49, #31AF9D);

Monochromatic scale

Palettes built from #31af49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #31af49 in the Color Lab