#2E7E1F#2E7E1F

#2E7E1F is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.151 H 140.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2E7E1F
RGBrgb(46, 126, 31)
HSLhsl(111, 61%, 31%)
HSVhsv(111, 75%, 49%)
CMYKcmyk(63.5%, 0%, 75.4%, 50.6%)
CIE-LABlab(46.45, -42.67, 42.07)
CIE-LCHlch(46.45, 59.92, 135.41°)
OKLaboklab(52.42% -0.1168 0.0952)
OKLCHoklch(52.42% 0.151 140.8)
XYZxyz(8.8345, 15.6006, 3.8417)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7E1F #6F1F7E
analogous
#5D7E1F #2E7E1F #1F7E3F
triadic
#2E7E1F #1F2E7E #7E1F2E
tetradic
#2E7E1F #1F5D7E #6F1F7E #7E3F1F
square
#2E7E1F #1F5D7E #6F1F7E #7E3F1F
split-complementary
#2E7E1F #3F1F7E #7E1F5D
monochromatic
#0A1C07 #1C4D13 #2E7E1F #40AF2B #5CD146

Accessibility & contrast

On white

5.10
#2E7E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2E7E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7E1F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7E1F#FFFFFF#000000##FFFFFF
##2E7E1F1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#227A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2e7e1f;
/* rgb */ color: rgb(46, 126, 31);
/* oklch */ color: oklch(52.4% 0.151 140.8);
Tailwind
colors: {
  custom: {
    50: '#71a461',
    500: '#2e7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #2e7e1f;
$custom-light: #71a461;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7e1f",
  "rgb": {
    "r": 46,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 110.526,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52423,
    "c": 0.15063,
    "h": 140.8
  },
  "luminance": 0.15601
}

Semantic roles & 50–950 ramp

primary
#2E7E1F
secondary
#A048B1
accent
#44E4CA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2E7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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