Skip to content

#178c2f

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

RGB
23, 140, 47
HSL
132°, 72%, 32%
CMYK
84, 0, 66, 45
Luminance
0.1914

Every format

HEX#178c2f
RGBrgb(23, 140, 47)
HSLhsl(132, 72%, 32%)
CMYKcmyk(84%, 0%, 66%, 45%)
LABlab(50.9 -50.2 39.8)
LCHlch(50.9 64.1 141.6)
OKLCHoklch(0.560 0.164 145.6)

Copy-ready code

/* CSS */
color: #178c2f;
background-color: #178c2f;
/* Tailwind (arbitrary) */
class="text-[#178c2f] bg-[#178c2f]"
/* SCSS */
$brand: #178c2f;
/* SwiftUI */
Color(red: 0.090, green: 0.549, blue: 0.184)
/* Android */
Color.parseColor("#178c2f")

Accessibility — WCAG contrast

Aa
#178c2f on white: 4.35:1
AA ✗ fail · AA-large · AAA
Aa
#178c2f on black: 4.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red9.0%
Green54.9%
Blue18.4%

CMYK percentages

Cyan83.6%
Magenta0.0%
Yellow66.4%
Key (black)45.1%

Color previews

#178c2f text on a black background

contrast 4.83:1

Card sample

#178c2f text on a white background

contrast 4.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #178c2f;
Background color
Panel with #178c2f background
background-color: #178c2f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #178c2f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(23, 140, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 140, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #178c2f;
background: linear-gradient(135deg, #178c2f, #178C7D);

Monochromatic scale

Palettes built from #178c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #178c2f in the Color Lab