#2C7C40#2C7C40

#2C7C40 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.2% C 0.121 H 148.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2C7C40
RGBrgb(44, 124, 64)
HSLhsl(135, 48%, 33%)
HSVhsv(135, 65%, 49%)
CMYKcmyk(64.5%, 0%, 48.4%, 51.4%)
CIE-LABlab(46.07, -38.21, 25.68)
CIE-LCHlch(46.07, 46.04, 146.09°)
OKLaboklab(52.21% -0.1032 0.0628)
OKLCHoklch(52.21% 0.121 148.7)
XYZxyz(9.1711, 15.3200, 7.3232)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7C40 #7C2C68
analogous
#407C2C #2C7C40 #2C7C68
triadic
#2C7C40 #402C7C #7C402C
tetradic
#2C7C40 #2C407C #7C2C68 #7C682C
square
#2C7C40 #2C407C #7C2C68 #7C682C
split-complementary
#2C7C40 #682C7C #7C2C40
monochromatic
#0C2211 #1C4F29 #2C7C40 #3CA957 #5DC577

Accessibility & contrast

On white

5.17
#2C7C40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2C7C40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7C40
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7C40#FFFFFF#000000##FFFFFF
##2C7C401.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D713B
Deuteranopia (green-blind)
#736A44
Tritanopia (blue-blind)
#147A6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2c7c40;
/* rgb */ color: rgb(44, 124, 64);
/* oklch */ color: oklch(52.2% 0.121 148.7);
Tailwind
colors: {
  custom: {
    50: '#6fa376',
    500: '#2c7c40',
    950: '#000000',
  },
}
SCSS
$custom: #2c7c40;
$custom-light: #6fa376;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7c40",
  "rgb": {
    "r": 44,
    "g": 124,
    "b": 64
  },
  "hsl": {
    "h": 135,
    "s": 47.619,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52212,
    "c": 0.12077,
    "h": 148.7
  },
  "luminance": 0.15321
}

Semantic roles & 50–950 ramp

primary
#2C7C40
secondary
#AC5897
accent
#51B6D7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2C7C40

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

Preview Lab → · Contrast checker → · Palette generator →

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