#2E791B#2E791B

#2E791B is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.147 H 140.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2E791B
RGBrgb(46, 121, 27)
HSLhsl(108, 64%, 29%)
HSVhsv(108, 78%, 47%)
CMYKcmyk(62%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.71, -41.09, 41.85)
CIE-LCHlch(44.71, 58.65, 134.47°)
OKLaboklab(50.98% -0.1127 0.0941)
OKLCHoklch(50.98% 0.147 140.1)
XYZxyz(8.1615, 14.3340, 3.3733)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E791B #661B79
analogous
#5D791B #2E791B #1B7937
triadic
#2E791B #1B2E79 #791B2E
tetradic
#2E791B #1B5D79 #661B79 #79371B
square
#2E791B #1B5D79 #661B79 #79371B
split-complementary
#2E791B #371B79 #791B5D
monochromatic
#0A1906 #1B4710 #2E791B #41AB26 #5AD33B

Accessibility & contrast

On white

5.43
#2E791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2E791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E791B
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E791B#FFFFFF#000000##FFFFFF
##2E791B1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#247567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2e791b;
/* rgb */ color: rgb(46, 121, 27);
/* oklch */ color: oklch(51.0% 0.147 140.1);
Tailwind
colors: {
  custom: {
    50: '#71a05f',
    500: '#2e791b',
    950: '#000000',
  },
}
SCSS
$custom: #2e791b;
$custom-light: #71a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e791b",
  "rgb": {
    "r": 46,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 107.872,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50977,
    "c": 0.14685,
    "h": 140.1
  },
  "luminance": 0.14335
}

Semantic roles & 50–950 ramp

primary
#2E791B
secondary
#9843AD
accent
#41E7C5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2E791B

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

Preview Lab → · Contrast checker → · Palette generator →

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