#2C7A42#2C7A42

#2C7A42 is a mid, moderate green. Relative luminance 0.148; OKLCH L 51.7% C 0.116 H 149.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2C7A42
RGBrgb(44, 122, 66)
HSLhsl(137, 47%, 33%)
HSVhsv(137, 64%, 48%)
CMYKcmyk(63.9%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.42, -37.02, 23.75)
CIE-LCHlch(45.42, 43.99, 147.32°)
OKLaboklab(51.69% -0.1 0.0584)
OKLCHoklch(51.69% 0.116 149.7)
XYZxyz(8.9809, 14.8470, 7.5457)
Luminance0.1485 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7A42 #7A2C64
analogous
#3D7A2C #2C7A42 #2C7A69
triadic
#2C7A42 #422C7A #7A422C
tetradic
#2C7A42 #2C3D7A #7A2C64 #7A692C
square
#2C7A42 #2C3D7A #7A2C64 #7A692C
split-complementary
#2C7A42 #692C7A #7A2C3D
monochromatic
#0C2011 #1C4D2A #2C7A42 #3CA75A #5CC47A

Accessibility & contrast

On white

5.29
#2C7A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2C7A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7A42
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7A42#FFFFFF#000000##FFFFFF
##2C7A421.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#14786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2c7a42;
/* rgb */ color: rgb(44, 122, 66);
/* oklch */ color: oklch(51.7% 0.116 149.7);
Tailwind
colors: {
  custom: {
    50: '#6ea177',
    500: '#2c7a42',
    950: '#000000',
  },
}
SCSS
$custom: #2c7a42;
$custom-light: #6ea177;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7a42",
  "rgb": {
    "r": 44,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 136.923,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51691,
    "c": 0.11583,
    "h": 149.7
  },
  "luminance": 0.14848
}

Semantic roles & 50–950 ramp

primary
#2C7A42
secondary
#AA5793
accent
#51B1D7
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #2C7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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