#2C7D40#2C7D40

#2C7D40 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.122 H 148.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2C7D40
RGBrgb(44, 125, 64)
HSLhsl(135, 48%, 33%)
HSVhsv(135, 65%, 49%)
CMYKcmyk(64.8%, 0%, 48.8%, 51%)
CIE-LABlab(46.41, -38.62, 26.11)
CIE-LCHlch(46.41, 46.62, 145.94°)
OKLaboklab(52.49% -0.1043 0.0637)
OKLCHoklch(52.49% 0.122 148.6)
XYZxyz(9.2971, 15.5719, 7.3652)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7D40 #7D2C69
analogous
#407D2C #2C7D40 #2C7D68
triadic
#2C7D40 #402C7D #7D402C
tetradic
#2C7D40 #2C407D #7D2C69 #7D682C
square
#2C7D40 #2C407D #7D2C69 #7D682C
split-complementary
#2C7D40 #682C7D #7D2C40
monochromatic
#0C2212 #1C5029 #2C7D40 #3CAA57 #5DC677

Accessibility & contrast

On white

5.10
#2C7D40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2C7D40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7D40
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7D40#FFFFFF#000000##FFFFFF
##2C7D401.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723B
Deuteranopia (green-blind)
#746B44
Tritanopia (blue-blind)
#137B6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2c7d40;
/* rgb */ color: rgb(44, 125, 64);
/* oklch */ color: oklch(52.5% 0.122 148.6);
Tailwind
colors: {
  custom: {
    50: '#6fa376',
    500: '#2c7d40',
    950: '#000000',
  },
}
SCSS
$custom: #2c7d40;
$custom-light: #6fa376;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7d40",
  "rgb": {
    "r": 44,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 134.815,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52491,
    "c": 0.12223,
    "h": 148.6
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#2C7D40
secondary
#AC5998
accent
#50B6D8
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2C7D40

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

Preview Lab → · Contrast checker → · Palette generator →

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