Skip to content

#2c7f39

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

RGB
44, 127, 57
HSL
129°, 49%, 34%
CMYK
65, 0, 55, 50
Luminance
0.1601

At a glance

Every number on this page in one read: what #2c7f39 is made of, how bright it looks, and which way it leans.

Hex
#2c7f39
Hue
129°
green
Saturation
49%
vivid
Lightness
34%
dark
Brightness
50%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1601
WCAG relative
Temperature
Cool
66/100 cool
Color family
Green
Tone
Vivid
Best ink
White
5.00:1
Closest name
Forest Green
ΔE2000 6.2
Where it sits
Hue129° of 360°
Saturation49%
Lightness34%
Temperature
Warm ← → Cool66% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2c7f39
RGBrgb(44, 127, 57)
HSLhsl(129, 49%, 34%)
CMYKcmyk(65%, 0%, 55%, 50%)
LABlab(47.0 -40.5 30.6)
LCHlch(47.0 50.8 143.0)
OKLCHoklch(0.529 0.132 146.2)
Decimal2916153
Display P3color(display-p3 0.173 0.498 0.224)

Copy-ready code

/* CSS */
color: #2c7f39;
background-color: #2c7f39;
/* Tailwind (arbitrary) */
class="text-[#2c7f39] bg-[#2c7f39]"
/* SCSS */
$brand: #2c7f39;
/* SwiftUI */
Color(red: 0.173, green: 0.498, blue: 0.224)
/* Android */
Color.parseColor("#2c7f39")
/* Flutter */
Color(0xFF2C7F39)
/* Python / OpenCV (BGR) */
(57, 127, 44)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #2c7f39 · 5.00:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.00:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.20:1
AA fail · AA large pass · AAA fail
Reading the other direction: #2c7f39 as text scores 5.00:1 on white and 4.20:1 on black.

Accessibility — WCAG contrast

Aa
#2c7f39 on white: 5.00:1
AA ✓ pass · AA-large · AAA
Aa
#2c7f39 on black: 4.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #817433
deuteranopia · #766D3E
tritanopia · #167C6F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c7f39 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F4FAF5
#EAF5EC
#D0ECD4
#ACE2B4
#82D48F
#58C569
#3FB652
#359744
#2c7f39
#22592A
#15371B
Base = 800Lightest = 50 · #F4FAF5Darkest = 950 · #15371B
:root {
  --brand-50: #F4FAF5;
  --brand-100: #EAF5EC;
  --brand-200: #D0ECD4;
  --brand-300: #ACE2B4;
  --brand-400: #82D48F;
  --brand-500: #58C569;
  --brand-600: #3FB652;
  --brand-700: #359744;
  --brand-800: #2c7f39;
  --brand-900: #22592A;
  --brand-950: #15371B;
  --brand: #2c7f39;
  --brand-ink: #ffffff;
}

Colors that work with #2c7f39

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4FAF5
Tinted page background
Border#C2EAC9
Hairlines and dividers
Muted text#4B9B57
Captions on the surface
Accent#7A2982
Second voice, not a rival
Dark variant#215F2B
Hover, pressed, headers
Light variant#ECF8EE
Selected rows, tints
Dark surface#142416
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2c7f39

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#7F2C72
Analogous left#487F2C
Analogous right#2C7F62
Split-complement 1#622C7F
Split-complement 2#7F2C48
Triadic 1#392C7F
Triadic 2#7F392C
Tetradic#2C487F

RGB percentages

Red17.3%
Green49.8%
Blue22.4%

CMYK percentages

Cyan65.4%
Magenta0.0%
Yellow55.1%
Key (black)50.2%

Color previews

#2c7f39 text on a black background

contrast 4.20:1

Card sample

#2c7f39 text on a white background

contrast 5.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2c7f39;
Background color
Panel with #2c7f39 background
background-color: #2c7f39;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 127, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 127, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c7f39;
background: linear-gradient(135deg, #2c7f39, #2C7F70);

Monochromatic scale

Palettes built from #2c7f39

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#2c7f39 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#2c7f39, answered

What color is #2c7f39?

#2c7f39 is a dark vivid green, closest to Forest Green (ΔE2000 6.2). It sits at 129° on the hue wheel with 49% saturation and 34% lightness, which reads as cool.

What is the RGB value of #2c7f39?

rgb(44, 127, 57) — 44 red, 127 green and 57 blue out of 255, or 17.3% / 49.8% / 22.4% by channel.

Is #2c7f39 a light or a dark color?

It is a dark color. Relative luminance is 0.1601 and perceived brightness is 40%, so white text on it reaches 5.00:1.

Should I use black or white text on #2c7f39?

White. It scores 5.00:1 against #2c7f39, versus 4.20:1 for black — AA at any size.

What is the complementary color of #2c7f39?

#7F2C72 sits directly opposite on the wheel. Softer options are the split-complements #622C7F and #7F2C48, which give the same contrast with far less vibration.

What colors go well with #2c7f39?

For interface work: #F4FAF5 as the surface, #C2EAC9 for borders, #4B9B57 for secondary text, #7A2982 as an accent and #215F2B for hover and pressed states. For a palette, the analogous pair #487F2C and #2C7F62 stays calm, while #7F2C72 is the loudest partner.

What is #2c7f39 in CMYK for printing?

cmyk(65%, 0%, 55%, 50%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #2c7f39 warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3D7F2C; nudged cooler, #2A8157.

Work with #2c7f39 in the Color Lab