#2C7948#2C7948

#2C7948 is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.5% C 0.108 H 152.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2C7948
RGBrgb(44, 121, 72)
HSLhsl(142, 47%, 32%)
HSVhsv(142, 64%, 47%)
CMYKcmyk(63.6%, 0%, 40.5%, 52.5%)
CIE-LABlab(45.19, -35.47, 20.07)
CIE-LCHlch(45.19, 40.75, 150.50°)
OKLaboklab(51.53% -0.096 0.05)
OKLCHoklch(51.53% 0.108 152.5)
XYZxyz(9.0451, 14.6772, 8.4859)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7948 #792C5D
analogous
#37792C #2C7948 #2C796F
triadic
#2C7948 #482C79 #79482C
tetradic
#2C7948 #2C3779 #792C5D #796F2C
square
#2C7948 #2C3779 #792C5D #796F2C
split-complementary
#2C7948 #6F2C79 #792C37
monochromatic
#0B1F13 #1C4C2D #2C7948 #3CA663 #5CC482

Accessibility & contrast

On white

5.34
#2C7948 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#2C7948 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7948
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7948#FFFFFF#000000##FFFFFF
##2C79481.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F45
Deuteranopia (green-blind)
#6F684B
Tritanopia (blue-blind)
#10776D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2c7948;
/* rgb */ color: rgb(44, 121, 72);
/* oklch */ color: oklch(51.5% 0.108 152.5);
Tailwind
colors: {
  custom: {
    50: '#6ea07b',
    500: '#2c7948',
    950: '#000000',
  },
}
SCSS
$custom: #2c7948;
$custom-light: #6ea07b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7948",
  "rgb": {
    "r": 44,
    "g": 121,
    "b": 72
  },
  "hsl": {
    "h": 141.818,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51532,
    "c": 0.10822,
    "h": 152.5
  },
  "luminance": 0.14678
}

Semantic roles & 50–950 ramp

primary
#2C7948
secondary
#AA578C
accent
#51A6D6
background
#F6F9F7
surface
#ECF2EE
border
#C7CCC9
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2C7948

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

Preview Lab → · Contrast checker → · Palette generator →

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