#2C7F45#2C7F45

#2C7F45 is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.1% C 0.120 H 150.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2C7F45
RGBrgb(44, 127, 69)
HSLhsl(138, 49%, 34%)
HSVhsv(138, 65%, 50%)
CMYKcmyk(65.4%, 0%, 45.7%, 50.2%)
CIE-LABlab(47.16, -38.58, 24.32)
CIE-LCHlch(47.16, 45.61, 147.77°)
OKLaboklab(53.14% -0.1041 0.0599)
OKLCHoklch(53.14% 0.12 150.1)
XYZxyz(9.7015, 16.1429, 8.2337)
Luminance0.1614 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7F45 #7F2C66
analogous
#3C7F2C #2C7F45 #2C7F6E
triadic
#2C7F45 #452C7F #7F452C
tetradic
#2C7F45 #2C3C7F #7F2C66 #7F6E2C
square
#2C7F45 #2C3C7F #7F2C66 #7F6E2C
split-complementary
#2C7F45 #6E2C7F #7F2C3C
monochromatic
#0D2414 #1C522C #2C7F45 #3CAC5E #5EC77E

Accessibility & contrast

On white

4.97
#2C7F45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2C7F45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7F45
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7F45#FFFFFF#000000##FFFFFF
##2C7F451.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807441
Deuteranopia (green-blind)
#756D49
Tritanopia (blue-blind)
#0F7D71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2c7f45;
/* rgb */ color: rgb(44, 127, 69);
/* oklch */ color: oklch(53.1% 0.120 150.1);
Tailwind
colors: {
  custom: {
    50: '#6fa579',
    500: '#2c7f45',
    950: '#000000',
  },
}
SCSS
$custom: #2c7f45;
$custom-light: #6fa579;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7f45",
  "rgb": {
    "r": 44,
    "g": 127,
    "b": 69
  },
  "hsl": {
    "h": 138.072,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53137,
    "c": 0.12012,
    "h": 150.1
  },
  "luminance": 0.16144
}

Semantic roles & 50–950 ramp

primary
#2C7F45
secondary
#AD5994
accent
#50AFD8
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2C7F45

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

Preview Lab → · Contrast checker → · Palette generator →

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