#2C7A1F#2C7A1F

#2C7A1F is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.146 H 141.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2C7A1F
RGBrgb(44, 122, 31)
HSLhsl(111, 59%, 30%)
HSVhsv(111, 75%, 48%)
CMYKcmyk(63.9%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.02, -41.66, 40.59)
CIE-LCHlch(45.02, 58.16, 135.74°)
OKLaboklab(51.22% -0.1139 0.0921)
OKLCHoklch(51.22% 0.146 141)
XYZxyz(8.2452, 14.5527, 3.6705)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7A1F #6D1F7A
analogous
#597A1F #2C7A1F #1F7A40
triadic
#2C7A1F #1F2C7A #7A1F2C
tetradic
#2C7A1F #1F597A #6D1F7A #7A401F
square
#2C7A1F #1F597A #6D1F7A #7A401F
split-complementary
#2C7A1F #401F7A #7A1F59
monochromatic
#091806 #1A4913 #2C7A1F #3EAB2B #58CF44

Accessibility & contrast

On white

5.37
#2C7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2C7A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7A1F
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7A1F#FFFFFF#000000##FFFFFF
##2C7A1F1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0F
Deuteranopia (green-blind)
#746828
Tritanopia (blue-blind)
#207668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2c7a1f;
/* rgb */ color: rgb(44, 122, 31);
/* oklch */ color: oklch(51.2% 0.146 141.0);
Tailwind
colors: {
  custom: {
    50: '#70a161',
    500: '#2c7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #2c7a1f;
$custom-light: #70a161;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7a1f",
  "rgb": {
    "r": 44,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 111.429,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51222,
    "c": 0.14647,
    "h": 141
  },
  "luminance": 0.14553
}

Semantic roles & 50–950 ramp

primary
#2C7A1F
secondary
#9F47AD
accent
#45E3CC
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2C7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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