#2E7F40#2E7F40

#2E7F40 is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.1% C 0.124 H 148.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2E7F40
RGBrgb(46, 127, 64)
HSLhsl(133, 47%, 34%)
HSVhsv(133, 64%, 50%)
CMYKcmyk(63.8%, 0%, 49.6%, 50.2%)
CIE-LABlab(47.14, -38.99, 27.05)
CIE-LCHlch(47.14, 47.45, 145.25°)
OKLaboklab(53.11% -0.1053 0.0659)
OKLCHoklch(53.11% 0.124 148)
XYZxyz(9.6408, 16.1288, 7.4546)
Luminance0.1613 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F40 #7F2E6D
analogous
#457F2E #2E7F40 #2E7F69
triadic
#2E7F40 #402E7F #7F402E
tetradic
#2E7F40 #2E457F #7F2E6D #7F692E
square
#2E7F40 #2E457F #7F2E6D #7F692E
split-complementary
#2E7F40 #692E7F #7F2E45
monochromatic
#0D2513 #1E5229 #2E7F40 #3EAC57 #61C678

Accessibility & contrast

On white

4.97
#2E7F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2E7F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7F40
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7F40#FFFFFF#000000##FFFFFF
##2E7F401.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80743B
Deuteranopia (green-blind)
#766D44
Tritanopia (blue-blind)
#177C70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2e7f40;
/* rgb */ color: rgb(46, 127, 64);
/* oklch */ color: oklch(53.1% 0.124 148.0);
Tailwind
colors: {
  custom: {
    50: '#70a576',
    500: '#2e7f40',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f40;
$custom-light: #70a576;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f40",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 133.333,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.53113,
    "c": 0.12422,
    "h": 148
  },
  "luminance": 0.1613
}

Semantic roles & 50–950 ramp

primary
#2E7F40
secondary
#AD5C9B
accent
#51B9D6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2E7F40

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

Preview Lab → · Contrast checker → · Palette generator →

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