#2C7142#2C7142

#2C7142 is a mid, moderate green. Relative luminance 0.127; OKLCH L 49.2% C 0.102 H 151.3°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#2C7142
RGBrgb(44, 113, 66)
HSLhsl(139, 44%, 31%)
HSVhsv(139, 61%, 44%)
CMYKcmyk(61.1%, 0%, 41.6%, 55.7%)
CIE-LABlab(42.37, -33.13, 19.78)
CIE-LCHlch(42.37, 38.58, 149.16°)
OKLaboklab(49.18% -0.0897 0.0492)
OKLCHoklch(49.18% 0.102 151.3)
XYZxyz(7.9266, 12.7383, 7.1942)
Luminance0.1274 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7142 #712C5B
analogous
#38712C #2C7142 #2C7164
triadic
#2C7142 #422C71 #71422C
tetradic
#2C7142 #2C3871 #712C5B #71642C
square
#2C7142 #2C3871 #712C5B #71642C
split-complementary
#2C7142 #642C71 #712C38
monochromatic
#0A190F #1B4528 #2C7142 #3D9D5C #59BE79

Accessibility & contrast

On white

5.92
#2C7142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2C7142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7142
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7142#FFFFFF#000000##FFFFFF
##2C71421.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71683F
Deuteranopia (green-blind)
#686145
Tritanopia (blue-blind)
#186F65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c7142;
/* rgb */ color: rgb(44, 113, 66);
/* oklch */ color: oklch(49.2% 0.102 151.3);
Tailwind
colors: {
  custom: {
    50: '#6c9a77',
    500: '#2c7142',
    950: '#000000',
  },
}
SCSS
$custom: #2c7142;
$custom-light: #6c9a77;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7142",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 66
  },
  "hsl": {
    "h": 139.13,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.49179,
    "c": 0.10228,
    "h": 151.3
  },
  "luminance": 0.12739
}

Semantic roles & 50–950 ramp

primary
#2C7142
secondary
#A3568A
accent
#54ABD4
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2C7142

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

Preview Lab → · Contrast checker → · Palette generator →

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