Skip to content

#31b261

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

RGB
49, 178, 97
HSL
142°, 57%, 45%
CMYK
73, 0, 46, 30
Luminance
0.3336

Every format

HEX#31b261
RGBrgb(49, 178, 97)
HSLhsl(142, 57%, 45%)
CMYKcmyk(73%, 0%, 46%, 30%)
LABlab(64.5 -52.6 31.6)
LCHlch(64.5 61.4 149.0)
OKLCHoklch(0.676 0.162 151.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#31b261 on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#31b261 on black: 7.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.2%
Green69.8%
Blue38.0%

CMYK percentages

Cyan72.5%
Magenta0.0%
Yellow45.5%
Key (black)30.2%

Color previews

#31b261 text on a black background

contrast 7.67:1

Card sample

#31b261 text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #31b261

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #31b261 in the Color Lab