#2C7940#2C7940

#2C7940 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.4% C 0.116 H 149.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2C7940
RGBrgb(44, 121, 64)
HSLhsl(136, 47%, 32%)
HSVhsv(136, 64%, 47%)
CMYKcmyk(63.6%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.05, -36.95, 24.39)
CIE-LCHlch(45.05, 44.28, 146.58°)
OKLaboklab(51.38% -0.0998 0.0598)
OKLCHoklch(51.38% 0.116 149.1)
XYZxyz(8.8009, 14.5795, 7.1998)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7940 #792C65
analogous
#3F792C #2C7940 #2C7966
triadic
#2C7940 #402C79 #79402C
tetradic
#2C7940 #2C3F79 #792C65 #79662C
square
#2C7940 #2C3F79 #792C65 #79662C
split-complementary
#2C7940 #662C79 #792C3F
monochromatic
#0B1F11 #1C4C28 #2C7940 #3CA658 #5CC477

Accessibility & contrast

On white

5.36
#2C7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2C7940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7940
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7940#FFFFFF#000000##FFFFFF
##2C79401.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#706844
Tritanopia (blue-blind)
#16776B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2c7940;
/* rgb */ color: rgb(44, 121, 64);
/* oklch */ color: oklch(51.4% 0.116 149.1);
Tailwind
colors: {
  custom: {
    50: '#6ea076',
    500: '#2c7940',
    950: '#000000',
  },
}
SCSS
$custom: #2c7940;
$custom-light: #6ea076;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7940",
  "rgb": {
    "r": 44,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 135.584,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51376,
    "c": 0.11638,
    "h": 149.1
  },
  "luminance": 0.1458
}

Semantic roles & 50–950 ramp

primary
#2C7940
secondary
#AA5794
accent
#51B4D6
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2C7940

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2C7940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva