Skip to content

#2c7a21

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

RGB
44, 122, 33
HSL
113°, 57%, 30%
CMYK
64, 0, 73, 52
Luminance
0.1456

At a glance

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

Hex
#2c7a21
Hue
113°
green
Saturation
57%
vivid
Lightness
30%
dark
Brightness
48%
HSV value
Perceived
38%
weighted brightness
Luminance
0.1456
WCAG relative
Temperature
Cool
59/100 cool
Color family
Green
Tone
Vivid
Best ink
White
5.37:1
Closest name
Green
ΔE2000 3.9
Where it sits
Hue113° of 360°
Saturation57%
Lightness30%
Temperature
Warm ← → Cool59% 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#2c7a21
RGBrgb(44, 122, 33)
HSLhsl(113, 57%, 30%)
CMYKcmyk(64%, 0%, 73%, 52%)
LABlab(45.0 -41.5 39.8)
LCHlch(45.0 57.5 136.2)
OKLCHoklch(0.512 0.145 141.3)
Decimal2914849
Display P3color(display-p3 0.173 0.478 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2c7a21 on white: 5.37:1
AA ✓ pass · AA-large · AAA
Aa
#2c7a21 on black: 3.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #7D6E13
deuteranopia · #74682A
tritanopia · #1F7668

Color scale — 50 to 950

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

#F5FBF4
#EBF7E9
#D1EFCD
#AFE7A7
#86DB7B
#5ECF4E
#45C134
#3AA12B
#2c7a21
#255E1D
#173A12
Base = 800Lightest = 50 · #F5FBF4Darkest = 950 · #173A12
:root {
  --brand-50: #F5FBF4;
  --brand-100: #EBF7E9;
  --brand-200: #D1EFCD;
  --brand-300: #AFE7A7;
  --brand-400: #86DB7B;
  --brand-500: #5ECF4E;
  --brand-600: #45C134;
  --brand-700: #3AA12B;
  --brand-800: #2c7a21;
  --brand-900: #255E1D;
  --brand-950: #173A12;
  --brand: #2c7a21;
  --brand-ink: #ffffff;
}

Colors that work with #2c7a21

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#F5FAF4
Tinted page background
Border#C5EDC0
Hairlines and dividers
Muted text#549B4B
Captions on the surface
Accent#5A1E7D
Second voice, not a rival
Dark variant#24641B
Hover, pressed, headers
Light variant#EDFAEB
Selected rows, tints
Dark surface#162414
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 #2c7a21

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#6F217A
Analogous left#587A21
Analogous right#217A43
Split-complement 1#43217A
Split-complement 2#7A2158
Triadic 1#212C7A
Triadic 2#7A212C
Tetradic#21587A

RGB percentages

Red17.3%
Green47.8%
Blue12.9%

CMYK percentages

Cyan63.9%
Magenta0.0%
Yellow73.0%
Key (black)52.2%

Color previews

#2c7a21 text on a black background

contrast 3.91:1

Card sample

#2c7a21 text on a white background

contrast 5.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(44, 122, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(44, 122, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2c7a21;
background: linear-gradient(135deg, #2c7a21, #217A51);

Monochromatic scale

Palettes built from #2c7a21

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.

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

#2c7a21, answered

What color is #2c7a21?

#2c7a21 is a dark vivid green, closest to Green (ΔE2000 3.9). It sits at 113° on the hue wheel with 57% saturation and 30% lightness, which reads as cool.

What is the RGB value of #2c7a21?

rgb(44, 122, 33) — 44 red, 122 green and 33 blue out of 255, or 17.3% / 47.8% / 12.9% by channel.

Is #2c7a21 a light or a dark color?

It is a dark color. Relative luminance is 0.1456 and perceived brightness is 38%, so white text on it reaches 5.37:1.

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

White. It scores 5.37:1 against #2c7a21, versus 3.91:1 for black — AA at any size.

What is the complementary color of #2c7a21?

#6F217A sits directly opposite on the wheel. Softer options are the split-complements #43217A and #7A2158, which give the same contrast with far less vibration.

What colors go well with #2c7a21?

For interface work: #F5FAF4 as the surface, #C5EDC0 for borders, #549B4B for secondary text, #5A1E7D as an accent and #24641B for hover and pressed states. For a palette, the analogous pair #587A21 and #217A43 stays calm, while #6F217A is the loudest partner.

What is #2c7a21 in CMYK for printing?

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

Is #2c7a21 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4D7A21; nudged cooler, #1F7C36.

Work with #2c7a21 in the Color Lab