#2E7A42#2E7A42

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

Color values

HEX#2E7A42
RGBrgb(46, 122, 66)
HSLhsl(136, 45%, 33%)
HSVhsv(136, 62%, 48%)
CMYKcmyk(62.3%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.49, -36.55, 23.85)
CIE-LCHlch(45.49, 43.64, 146.88°)
OKLaboklab(51.76% -0.0988 0.0586)
OKLCHoklch(51.76% 0.115 149.3)
XYZxyz(9.0690, 14.8924, 7.5498)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7A42 #7A2E66
analogous
#407A2E #2E7A42 #2E7A68
triadic
#2E7A42 #422E7A #7A422E
tetradic
#2E7A42 #2E407A #7A2E66 #7A682E
square
#2E7A42 #2E407A #7A2E66 #7A682E
split-complementary
#2E7A42 #682E7A #7A2E40
monochromatic
#0C2112 #1D4E2A #2E7A42 #3FA65A #60C37A

Accessibility & contrast

On white

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

On black

3.98
#2E7A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2E7A42#FFFFFF#000000##FFFFFF
##2E7A421.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#19786C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7a42;
/* rgb */ color: rgb(46, 122, 66);
/* oklch */ color: oklch(51.8% 0.115 149.3);
Tailwind
colors: {
  custom: {
    50: '#6fa177',
    500: '#2e7a42',
    950: '#000000',
  },
}
SCSS
$custom: #2e7a42;
$custom-light: #6fa177;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7a42",
  "rgb": {
    "r": 46,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 135.789,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5176,
    "c": 0.11489,
    "h": 149.3
  },
  "luminance": 0.14893
}

Semantic roles & 50–950 ramp

primary
#2E7A42
secondary
#AA5A95
accent
#53B3D5
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2E7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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