#2E7A40#2E7A40

#2E7A40 is a mid, moderate green. Relative luminance 0.149; OKLCH L 51.7% C 0.117 H 148.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2E7A40
RGBrgb(46, 122, 64)
HSLhsl(134, 45%, 33%)
HSVhsv(134, 62%, 48%)
CMYKcmyk(62.3%, 0%, 47.5%, 52.2%)
CIE-LABlab(45.45, -36.90, 24.91)
CIE-LCHlch(45.45, 44.52, 145.98°)
OKLaboklab(51.72% -0.0997 0.061)
OKLCHoklch(51.72% 0.117 148.5)
XYZxyz(9.0110, 14.8692, 7.2447)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7A40 #7A2E68
analogous
#427A2E #2E7A40 #2E7A66
triadic
#2E7A40 #402E7A #7A402E
tetradic
#2E7A40 #2E427A #7A2E68 #7A662E
square
#2E7A40 #2E427A #7A2E68 #7A662E
split-complementary
#2E7A40 #662E7A #7A2E42
monochromatic
#0C2111 #1D4E29 #2E7A40 #3FA657 #60C377

Accessibility & contrast

On white

5.28
#2E7A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2E7A40
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7A40#FFFFFF#000000##FFFFFF
##2E7A401.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703C
Deuteranopia (green-blind)
#716944
Tritanopia (blue-blind)
#1A786C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7a40;
/* rgb */ color: rgb(46, 122, 64);
/* oklch */ color: oklch(51.7% 0.117 148.5);
Tailwind
colors: {
  custom: {
    50: '#6fa176',
    500: '#2e7a40',
    950: '#000000',
  },
}
SCSS
$custom: #2e7a40;
$custom-light: #6fa176;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7a40",
  "rgb": {
    "r": 46,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 134.211,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51724,
    "c": 0.11692,
    "h": 148.5
  },
  "luminance": 0.1487
}

Semantic roles & 50–950 ramp

primary
#2E7A40
secondary
#AA5A97
accent
#53B6D5
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2E7A40

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

Preview Lab → · Contrast checker → · Palette generator →

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