#2E7940#2E7940

#2E7940 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.4% C 0.115 H 148.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2E7940
RGBrgb(46, 121, 64)
HSLhsl(134, 45%, 33%)
HSVhsv(134, 62%, 47%)
CMYKcmyk(62%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.12, -36.48, 24.48)
CIE-LCHlch(45.12, 43.93, 146.13°)
OKLaboklab(51.45% -0.0986 0.06)
OKLCHoklch(51.45% 0.115 148.7)
XYZxyz(8.8889, 14.6249, 7.2040)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7940 #792E67
analogous
#41792E #2E7940 #2E7965
triadic
#2E7940 #402E79 #79402E
tetradic
#2E7940 #2E4179 #792E67 #79652E
square
#2E7940 #2E4179 #792E67 #79652E
split-complementary
#2E7940 #652E79 #792E41
monochromatic
#0C2011 #1D4D29 #2E7940 #3FA557 #5FC277

Accessibility & contrast

On white

5.35
#2E7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2E7940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7940
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7940#FFFFFF#000000##FFFFFF
##2E79401.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#706844
Tritanopia (blue-blind)
#1A776B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2e7940;
/* rgb */ color: rgb(46, 121, 64);
/* oklch */ color: oklch(51.4% 0.115 148.7);
Tailwind
colors: {
  custom: {
    50: '#6fa076',
    500: '#2e7940',
    950: '#000000',
  },
}
SCSS
$custom: #2e7940;
$custom-light: #6fa076;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7940",
  "rgb": {
    "r": 46,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 134.4,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.51446,
    "c": 0.11544,
    "h": 148.7
  },
  "luminance": 0.14626
}

Semantic roles & 50–950 ramp

primary
#2E7940
secondary
#A95A96
accent
#53B6D5
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2E7940

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

Preview Lab → · Contrast checker → · Palette generator →

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