#2E7B1F#2E7B1F

#2E7B1F is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.6% C 0.147 H 140.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2E7B1F
RGBrgb(46, 123, 31)
HSLhsl(110, 60%, 30%)
HSVhsv(110, 75%, 48%)
CMYKcmyk(62.6%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.42, -41.53, 41.03)
CIE-LCHlch(45.42, 58.38, 135.35°)
OKLaboklab(51.58% -0.1137 0.093)
OKLCHoklch(51.58% 0.147 140.7)
XYZxyz(8.4566, 14.8449, 3.7158)
Luminance0.1485 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7B1F #6C1F7B
analogous
#5C7B1F #2E7B1F #1F7B3E
triadic
#2E7B1F #1F2E7B #7B1F2E
tetradic
#2E7B1F #1F5C7B #6C1F7B #7B3E1F
square
#2E7B1F #1F5C7B #6C1F7B #7B3E1F
split-complementary
#2E7B1F #3E1F7B #7B1F5C
monochromatic
#091906 #1C4A13 #2E7B1F #40AC2B #5BD044

Accessibility & contrast

On white

5.29
#2E7B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2E7B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7B1F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7B1F#FFFFFF#000000##FFFFFF
##2E7B1F1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e7b1f;
/* rgb */ color: rgb(46, 123, 31);
/* oklch */ color: oklch(51.6% 0.147 140.7);
Tailwind
colors: {
  custom: {
    50: '#71a261',
    500: '#2e7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #2e7b1f;
$custom-light: #71a261;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7b1f",
  "rgb": {
    "r": 46,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 110.217,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51575,
    "c": 0.14687,
    "h": 140.7
  },
  "luminance": 0.14846
}

Semantic roles & 50–950 ramp

primary
#2E7B1F
secondary
#9E48AE
accent
#45E3C9
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2E7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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