#2C7B42#2C7B42

#2C7B42 is a mid, moderate green. Relative luminance 0.151; OKLCH L 52.0% C 0.117 H 149.6°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2C7B42
RGBrgb(44, 123, 66)
HSLhsl(137, 47%, 33%)
HSVhsv(137, 64%, 48%)
CMYKcmyk(64.2%, 0%, 46.3%, 51.8%)
CIE-LABlab(45.76, -37.44, 24.19)
CIE-LCHlch(45.76, 44.58, 147.14°)
OKLaboklab(51.97% -0.1011 0.0594)
OKLCHoklch(51.97% 0.117 149.6)
XYZxyz(9.1044, 15.0938, 7.5868)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7B42 #7B2C65
analogous
#3D7B2C #2C7B42 #2C7B69
triadic
#2C7B42 #422C7B #7B422C
tetradic
#2C7B42 #2C3D7B #7B2C65 #7B692C
square
#2C7B42 #2C3D7B #7B2C65 #7B692C
split-complementary
#2C7B42 #692C7B #7B2C3D
monochromatic
#0C2112 #1C4E2A #2C7B42 #3CA85A #5DC57A

Accessibility & contrast

On white

5.23
#2C7B42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2C7B42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7B42
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7B42#FFFFFF#000000##FFFFFF
##2C7B421.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C713E
Deuteranopia (green-blind)
#726A46
Tritanopia (blue-blind)
#13796D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2c7b42;
/* rgb */ color: rgb(44, 123, 66);
/* oklch */ color: oklch(52.0% 0.117 149.6);
Tailwind
colors: {
  custom: {
    50: '#6ea277',
    500: '#2c7b42',
    950: '#000000',
  },
}
SCSS
$custom: #2c7b42;
$custom-light: #6ea277;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7b42",
  "rgb": {
    "r": 44,
    "g": 123,
    "b": 66
  },
  "hsl": {
    "h": 136.709,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5197,
    "c": 0.1173,
    "h": 149.6
  },
  "luminance": 0.15095
}

Semantic roles & 50–950 ramp

primary
#2C7B42
secondary
#AB5894
accent
#51B2D7
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2C7B42

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

Preview Lab → · Contrast checker → · Palette generator →

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