#2C791B#2C791B

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

Color values

HEX#2C791B
RGBrgb(44, 121, 27)
HSLhsl(109, 64%, 29%)
HSVhsv(109, 78%, 47%)
CMYKcmyk(63.6%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.64, -41.60, 41.77)
CIE-LCHlch(44.64, 58.95, 134.89°)
OKLaboklab(50.91% -0.114 0.094)
OKLCHoklch(50.91% 0.148 140.5)
XYZxyz(8.0735, 14.2886, 3.3692)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C791B #681B79
analogous
#5B791B #2C791B #1B7939
triadic
#2C791B #1B2C79 #791B2C
tetradic
#2C791B #1B5B79 #681B79 #79391B
square
#2C791B #1B5B79 #681B79 #79391B
split-complementary
#2C791B #391B79 #791B5B
monochromatic
#091906 #1A4710 #2C791B #3EAB26 #57D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C791B#FFFFFF#000000##FFFFFF
##2C791B1.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)
#7C6D07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#217567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2c791b;
/* rgb */ color: rgb(44, 121, 27);
/* oklch */ color: oklch(50.9% 0.148 140.5);
Tailwind
colors: {
  custom: {
    50: '#70a05f',
    500: '#2c791b',
    950: '#000000',
  },
}
SCSS
$custom: #2c791b;
$custom-light: #70a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c791b",
  "rgb": {
    "r": 44,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 109.149,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50906,
    "c": 0.14774,
    "h": 140.5
  },
  "luminance": 0.14289
}

Semantic roles & 50–950 ramp

primary
#2C791B
secondary
#9A43AD
accent
#41E7C9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2C791B

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

Preview Lab → · Contrast checker → · Palette generator →

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