#2C7F20#2C7F20

#2C7F20 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.152 H 141.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2C7F20
RGBrgb(44, 127, 32)
HSLhsl(112, 60%, 31%)
HSVhsv(112, 75%, 50%)
CMYKcmyk(65.4%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.73, -43.46, 41.95)
CIE-LCHlch(46.73, 60.40, 136.01°)
OKLaboklab(52.65% -0.1187 0.0951)
OKLCHoklch(52.65% 0.152 141.3)
XYZxyz(8.8883, 15.8176, 3.9509)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7F20 #73207F
analogous
#5B7F20 #2C7F20 #207F43
triadic
#2C7F20 #202C7F #7F202C
tetradic
#2C7F20 #205B7F #73207F #7F4320
square
#2C7F20 #205B7F #73207F #7F4320
split-complementary
#2C7F20 #43207F #7F205B
monochromatic
#0A1D07 #1B4E14 #2C7F20 #3DB02C #5AD148

Accessibility & contrast

On white

5.04
#2C7F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2C7F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7F20
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7F20#FFFFFF#000000##FFFFFF
##2C7F201.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#1E7B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2c7f20;
/* rgb */ color: rgb(44, 127, 32);
/* oklch */ color: oklch(52.6% 0.152 141.3);
Tailwind
colors: {
  custom: {
    50: '#71a562',
    500: '#2c7f20',
    950: '#000000',
  },
}
SCSS
$custom: #2c7f20;
$custom-light: #71a562;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7f20",
  "rgb": {
    "r": 44,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 112.421,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52646,
    "c": 0.15208,
    "h": 141.3
  },
  "luminance": 0.15819
}

Semantic roles & 50–950 ramp

primary
#2C7F20
secondary
#A549B2
accent
#45E3CF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2C7F20

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

Preview Lab → · Contrast checker → · Palette generator →

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