#2C7B1F#2C7B1F

#2C7B1F is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.148 H 141.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2C7B1F
RGBrgb(44, 123, 31)
HSLhsl(112, 60%, 30%)
HSVhsv(112, 75%, 48%)
CMYKcmyk(64.2%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.36, -42.04, 40.94)
CIE-LCHlch(45.36, 58.68, 135.76°)
OKLaboklab(51.51% -0.1149 0.0928)
OKLCHoklch(51.51% 0.148 141.1)
XYZxyz(8.3686, 14.7995, 3.7116)
Luminance0.1480 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7B1F #6E1F7B
analogous
#5A7B1F #2C7B1F #1F7B40
triadic
#2C7B1F #1F2C7B #7B1F2C
tetradic
#2C7B1F #1F5A7B #6E1F7B #7B401F
square
#2C7B1F #1F5A7B #6E1F7B #7B401F
split-complementary
#2C7B1F #401F7B #7B1F5A
monochromatic
#091906 #1B4A13 #2C7B1F #3DAC2B #58D044

Accessibility & contrast

On white

5.30
#2C7B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2C7B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7B1F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7B1F#FFFFFF#000000##FFFFFF
##2C7B1F1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#756928
Tritanopia (blue-blind)
#1F7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2c7b1f;
/* rgb */ color: rgb(44, 123, 31);
/* oklch */ color: oklch(51.5% 0.148 141.1);
Tailwind
colors: {
  custom: {
    50: '#70a261',
    500: '#2c7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #2c7b1f;
$custom-light: #70a261;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7b1f",
  "rgb": {
    "r": 44,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 111.522,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51506,
    "c": 0.14774,
    "h": 141.1
  },
  "luminance": 0.148
}

Semantic roles & 50–950 ramp

primary
#2C7B1F
secondary
#A048AE
accent
#45E3CD
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2C7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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