#2C791F#2C791F

#2C791F is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.145 H 141.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#2C791F
RGBrgb(44, 121, 31)
HSLhsl(111, 59%, 30%)
HSVhsv(111, 74%, 47%)
CMYKcmyk(63.6%, 0%, 74.4%, 52.5%)
CIE-LABlab(44.67, -41.28, 40.24)
CIE-LCHlch(44.67, 57.65, 135.73°)
OKLaboklab(50.94% -0.1129 0.0914)
OKLCHoklch(50.94% 0.145 141)
XYZxyz(8.1230, 14.3084, 3.6298)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C791F #6C1F79
analogous
#59791F #2C791F #1F793F
triadic
#2C791F #1F2C79 #791F2C
tetradic
#2C791F #1F5979 #6C1F79 #793F1F
square
#2C791F #1F5979 #6C1F79 #793F1F
split-complementary
#2C791F #3F1F79 #791F59
monochromatic
#091806 #1A4813 #2C791F #3EAA2B #58CF43

Accessibility & contrast

On white

5.44
#2C791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2C791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C791F
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C791F#FFFFFF#000000##FFFFFF
##2C791F1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#207567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2c791f;
/* rgb */ color: rgb(44, 121, 31);
/* oklch */ color: oklch(50.9% 0.145 141.0);
Tailwind
colors: {
  custom: {
    50: '#6fa061',
    500: '#2c791f',
    950: '#000000',
  },
}
SCSS
$custom: #2c791f;
$custom-light: #6fa061;
$custom-dark: #000000;
JSON
{
  "hex": "#2c791f",
  "rgb": {
    "r": 44,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 111.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50938,
    "c": 0.14521,
    "h": 141
  },
  "luminance": 0.14309
}

Semantic roles & 50–950 ramp

primary
#2C791F
secondary
#9E47AC
accent
#45E2CC
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2C791F

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

Preview Lab → · Contrast checker → · Palette generator →

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