#2E7F2A#2E7F2A

#2E7F2A is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.144 H 142.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2E7F2A
RGBrgb(46, 127, 42)
HSLhsl(117, 50%, 33%)
HSVhsv(117, 67%, 50%)
CMYKcmyk(63.8%, 0%, 66.9%, 50.2%)
CIE-LABlab(46.88, -42.00, 37.84)
CIE-LCHlch(46.88, 56.54, 137.98°)
OKLaboklab(52.81% -0.1143 0.0877)
OKLCHoklch(52.81% 0.144 142.5)
XYZxyz(9.1335, 15.9259, 4.7827)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F2A #7B2A7F
analogous
#587F2A #2E7F2A #2A7F50
triadic
#2E7F2A #2A2E7F #7F2A2E
tetradic
#2E7F2A #2A587F #7B2A7F #7F502A
square
#2E7F2A #2A587F #7B2A7F #7F502A
split-complementary
#2E7F2A #502A7F #7F2A58
monochromatic
#0D230C #1D511B #2E7F2A #3FAD39 #60C95B

Accessibility & contrast

On white

5.02
#2E7F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2E7F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7F2A
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7F2A#FFFFFF#000000##FFFFFF
##2E7F2A1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731F
Deuteranopia (green-blind)
#786D31
Tritanopia (blue-blind)
#1F7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2e7f2a;
/* rgb */ color: rgb(46, 127, 42);
/* oklch */ color: oklch(52.8% 0.144 142.5);
Tailwind
colors: {
  custom: {
    50: '#71a568',
    500: '#2e7f2a',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f2a;
$custom-light: #71a568;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f2a",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 117.176,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52808,
    "c": 0.14408,
    "h": 142.5
  },
  "luminance": 0.15927
}

Semantic roles & 50–950 ramp

primary
#2E7F2A
secondary
#AA57AE
accent
#4EDAD3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2E7F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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