#2C7D1F#2C7D1F

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

Color values

HEX#2C7D1F
RGBrgb(44, 125, 31)
HSLhsl(112, 60%, 31%)
HSVhsv(112, 75%, 49%)
CMYKcmyk(64.8%, 0%, 75.2%, 51%)
CIE-LABlab(46.04, -42.79, 41.64)
CIE-LCHlch(46.04, 59.71, 135.78°)
OKLaboklab(52.07% -0.117 0.0943)
OKLCHoklch(52.07% 0.15 141.1)
XYZxyz(8.6192, 15.3008, 3.7952)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7D1F #701F7D
analogous
#5B7D1F #2C7D1F #1F7D41
triadic
#2C7D1F #1F2C7D #7D1F2C
tetradic
#2C7D1F #1F5B7D #701F7D #7D411F
square
#2C7D1F #1F5B7D #701F7D #7D411F
split-complementary
#2C7D1F #411F7D #7D1F5B
monochromatic
#091B07 #1B4C13 #2C7D1F #3DAE2B #59D145

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C7D1F#FFFFFF#000000##FFFFFF
##2C7D1F1.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)
#80710E
Deuteranopia (green-blind)
#766B29
Tritanopia (blue-blind)
#1F796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2c7d1f;
/* rgb */ color: rgb(44, 125, 31);
/* oklch */ color: oklch(52.1% 0.150 141.1);
Tailwind
colors: {
  custom: {
    50: '#70a361',
    500: '#2c7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #2c7d1f;
$custom-light: #70a361;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7d1f",
  "rgb": {
    "r": 44,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 111.702,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52072,
    "c": 0.15023,
    "h": 141.1
  },
  "luminance": 0.15302
}

Semantic roles & 50–950 ramp

primary
#2C7D1F
secondary
#A248B0
accent
#44E3CD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2C7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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