#2E7B42#2E7B42

#2E7B42 is a mid, moderate green. Relative luminance 0.151; OKLCH L 52.0% C 0.116 H 149.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2E7B42
RGBrgb(46, 123, 66)
HSLhsl(136, 46%, 33%)
HSVhsv(136, 63%, 48%)
CMYKcmyk(62.6%, 0%, 46.3%, 51.8%)
CIE-LABlab(45.82, -36.97, 24.28)
CIE-LCHlch(45.82, 44.23, 146.71°)
OKLaboklab(52.04% -0.0999 0.0596)
OKLCHoklch(52.04% 0.116 149.2)
XYZxyz(9.1924, 15.1392, 7.5909)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7B42 #7B2E67
analogous
#417B2E #2E7B42 #2E7B68
triadic
#2E7B42 #422E7B #7B422E
tetradic
#2E7B42 #2E417B #7B2E67 #7B682E
square
#2E7B42 #2E417B #7B2E67 #7B682E
split-complementary
#2E7B42 #682E7B #7B2E41
monochromatic
#0D2212 #1D4E2A #2E7B42 #3FA85A #60C37A

Accessibility & contrast

On white

5.21
#2E7B42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2E7B42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7B42
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7B42#FFFFFF#000000##FFFFFF
##2E7B421.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C713E
Deuteranopia (green-blind)
#726A46
Tritanopia (blue-blind)
#18796D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7b42;
/* rgb */ color: rgb(46, 123, 66);
/* oklch */ color: oklch(52.0% 0.116 149.2);
Tailwind
colors: {
  custom: {
    50: '#6fa277',
    500: '#2e7b42',
    950: '#000000',
  },
}
SCSS
$custom: #2e7b42;
$custom-light: #6fa277;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7b42",
  "rgb": {
    "r": 46,
    "g": 123,
    "b": 66
  },
  "hsl": {
    "h": 135.584,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52038,
    "c": 0.11637,
    "h": 149.2
  },
  "luminance": 0.1514
}

Semantic roles & 50–950 ramp

primary
#2E7B42
secondary
#AA5B95
accent
#53B3D5
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2E7B42

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

Preview Lab → · Contrast checker → · Palette generator →

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