#2E7A1F#2E7A1F

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

Color values

HEX#2E7A1F
RGBrgb(46, 122, 31)
HSLhsl(110, 59%, 30%)
HSVhsv(110, 75%, 48%)
CMYKcmyk(62.3%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.08, -41.15, 40.68)
CIE-LCHlch(45.08, 57.86, 135.33°)
OKLaboklab(51.29% -0.1126 0.0923)
OKLCHoklch(51.29% 0.146 140.7)
XYZxyz(8.3332, 14.5981, 3.6746)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7A1F #6B1F7A
analogous
#5B7A1F #2E7A1F #1F7A3E
triadic
#2E7A1F #1F2E7A #7A1F2E
tetradic
#2E7A1F #1F5B7A #6B1F7A #7A3E1F
square
#2E7A1F #1F5B7A #6B1F7A #7A3E1F
split-complementary
#2E7A1F #3E1F7A #7A1F5B
monochromatic
#091806 #1C4913 #2E7A1F #40AB2B #5BCF44

Accessibility & contrast

On white

5.36
#2E7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2E7A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7A1F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7A1F#FFFFFF#000000##FFFFFF
##2E7A1F1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F0F
Deuteranopia (green-blind)
#746828
Tritanopia (blue-blind)
#237668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2e7a1f;
/* rgb */ color: rgb(46, 122, 31);
/* oklch */ color: oklch(51.3% 0.146 140.7);
Tailwind
colors: {
  custom: {
    50: '#71a161',
    500: '#2e7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #2e7a1f;
$custom-light: #71a161;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7a1f",
  "rgb": {
    "r": 46,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 110.11,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51292,
    "c": 0.1456,
    "h": 140.7
  },
  "luminance": 0.14599
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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