Skip to content

#2c7c2f

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

RGB
44, 124, 47
HSL
122°, 48%, 33%
CMYK
65, 0, 62, 51
Luminance
0.1516

At a glance

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

Hex
#2c7c2f
Hue
122°
green
Saturation
48%
vivid
Lightness
33%
dark
Brightness
49%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1516
WCAG relative
Temperature
Cool
63/100 cool
Color family
Green
Tone
Vivid
Best ink
White
5.21:1
Closest name
Green
ΔE2000 5.2
Where it sits
Hue122° of 360°
Saturation48%
Lightness33%
Temperature
Warm ← → Cool63% 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#2c7c2f
RGBrgb(44, 124, 47)
HSLhsl(122, 48%, 33%)
CMYKcmyk(65%, 0%, 62%, 51%)
LABlab(45.9 -40.7 34.3)
LCHlch(45.9 53.2 139.9)
OKLCHoklch(0.520 0.137 143.9)
Decimal2915375
Display P3color(display-p3 0.173 0.486 0.184)

Copy-ready code

/* CSS */
color: #2c7c2f;
background-color: #2c7c2f;
/* Tailwind (arbitrary) */
class="text-[#2c7c2f] bg-[#2c7c2f]"
/* SCSS */
$brand: #2c7c2f;
/* SwiftUI */
Color(red: 0.173, green: 0.486, blue: 0.184)
/* Android */
Color.parseColor("#2c7c2f")
/* Flutter */
Color(0xFF2C7C2F)
/* Python / OpenCV (BGR) */
(47, 124, 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 #2c7c2f · 5.21:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.21:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.03:1
AA fail · AA large pass · AAA fail
Reading the other direction: #2c7c2f as text scores 5.21:1 on white and 4.03:1 on black.

Accessibility — WCAG contrast

Aa
#2c7c2f on white: 5.21:1
AA ✓ pass · AA-large · AAA
Aa
#2c7c2f on black: 4.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #7E7127
deuteranopia · #746A35
tritanopia · #1B796B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2c7c2f 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.

#F5FAF5
#EAF5EA
#D0ECD1
#ACE2AE
#83D386
#59C45D
#40B545
#359739
#2c7c2f
#225824
#153717
Base = 800Lightest = 50 · #F5FAF5Darkest = 950 · #153717
:root {
  --brand-50: #F5FAF5;
  --brand-100: #EAF5EA;
  --brand-200: #D0ECD1;
  --brand-300: #ACE2AE;
  --brand-400: #83D386;
  --brand-500: #59C45D;
  --brand-600: #40B545;
  --brand-700: #359739;
  --brand-800: #2c7c2f;
  --brand-900: #225824;
  --brand-950: #153717;
  --brand: #2c7c2f;
  --brand-ink: #ffffff;
}

Colors that work with #2c7c2f

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#C3EAC4
Hairlines and dividers
Muted text#4B9B4E
Captions on the surface
Accent#6D297F
Second voice, not a rival
Dark variant#215E24
Hover, pressed, headers
Light variant#ECF8ED
Selected rows, tints
Dark surface#142414
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 #2c7c2f

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#7C2C79
Analogous left#517C2C
Analogous right#2C7C57
Split-complement 1#572C7C
Split-complement 2#7C2C51
Triadic 1#2F2C7C
Triadic 2#7C2F2C
Tetradic#2C517C

RGB percentages

Red17.3%
Green48.6%
Blue18.4%

CMYK percentages

Cyan64.5%
Magenta0.0%
Yellow62.1%
Key (black)51.4%

Color previews

#2c7c2f text on a black background

contrast 4.03:1

Card sample

#2c7c2f text on a white background

contrast 5.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2c7c2f

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.

#2c7c2f 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.

#2c7c2f, answered

What color is #2c7c2f?

#2c7c2f is a dark vivid green, closest to Green (ΔE2000 5.2). It sits at 122° on the hue wheel with 48% saturation and 33% lightness, which reads as cool.

What is the RGB value of #2c7c2f?

rgb(44, 124, 47) — 44 red, 124 green and 47 blue out of 255, or 17.3% / 48.6% / 18.4% by channel.

Is #2c7c2f a light or a dark color?

It is a dark color. Relative luminance is 0.1516 and perceived brightness is 39%, so white text on it reaches 5.21:1.

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

White. It scores 5.21:1 against #2c7c2f, versus 4.03:1 for black — AA at any size.

What is the complementary color of #2c7c2f?

#7C2C79 sits directly opposite on the wheel. Softer options are the split-complements #572C7C and #7C2C51, which give the same contrast with far less vibration.

What colors go well with #2c7c2f?

For interface work: #F4FAF5 as the surface, #C3EAC4 for borders, #4B9B4E for secondary text, #6D297F as an accent and #215E24 for hover and pressed states. For a palette, the analogous pair #517C2C and #2C7C57 stays calm, while #7C2C79 is the loudest partner.

What is #2c7c2f in CMYK for printing?

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

Is #2c7c2f warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #467C2C; nudged cooler, #2A7E4C.

Work with #2c7c2f in the Color Lab