#2C7F2B#2C7F2B

#2C7F2B is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.144 H 143.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2C7F2B
RGBrgb(44, 127, 43)
HSLhsl(119, 49%, 33%)
HSVhsv(119, 66%, 50%)
CMYKcmyk(65.4%, 0%, 66.1%, 50.2%)
CIE-LABlab(46.83, -42.37, 37.31)
CIE-LCHlch(46.83, 56.46, 138.64°)
OKLaboklab(52.75% -0.1151 0.0867)
OKLCHoklch(52.75% 0.144 143)
XYZxyz(9.0636, 15.8877, 4.8740)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7F2B #7E2B7F
analogous
#567F2B #2C7F2B #2B7F54
triadic
#2C7F2B #2B2C7F #7F2B2C
tetradic
#2C7F2B #2B567F #7E2B7F #7F542B
square
#2C7F2B #2B567F #7E2B7F #7F542B
split-complementary
#2C7F2B #542B7F #7F2B56
monochromatic
#0C240C #1C511C #2C7F2B #3CAD3A #5EC85C

Accessibility & contrast

On white

5.03
#2C7F2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2C7F2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7F2B
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7F2B#FFFFFF#000000##FFFFFF
##2C7F2B1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827321
Deuteranopia (green-blind)
#786C32
Tritanopia (blue-blind)
#1B7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2c7f2b;
/* rgb */ color: rgb(44, 127, 43);
/* oklch */ color: oklch(52.8% 0.144 143.0);
Tailwind
colors: {
  custom: {
    50: '#70a568',
    500: '#2c7f2b',
    950: '#000000',
  },
}
SCSS
$custom: #2c7f2b;
$custom-light: #70a568;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7f2b",
  "rgb": {
    "r": 44,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 119.286,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52753,
    "c": 0.14413,
    "h": 143
  },
  "luminance": 0.15889
}

Semantic roles & 50–950 ramp

primary
#2C7F2B
secondary
#AD58AE
accent
#4FD9D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2C7F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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