#2E7F1F#2E7F1F

#2E7F1F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.152 H 140.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2E7F1F
RGBrgb(46, 127, 31)
HSLhsl(111, 61%, 31%)
HSVhsv(111, 76%, 50%)
CMYKcmyk(63.8%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.79, -43.05, 42.41)
CIE-LCHlch(46.79, 60.43, 135.43°)
OKLaboklab(52.71% -0.1178 0.0959)
OKLCHoklch(52.71% 0.152 140.9)
XYZxyz(8.9630, 15.8577, 3.8846)
Luminance0.1586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F1F #701F7F
analogous
#5E7F1F #2E7F1F #1F7F40
triadic
#2E7F1F #1F2E7F #7F1F2E
tetradic
#2E7F1F #1F5E7F #701F7F #7F401F
square
#2E7F1F #1F5E7F #701F7F #7F401F
split-complementary
#2E7F1F #401F7F #7F1F5E
monochromatic
#0A1D07 #1C4E13 #2E7F1F #40B02B #5CD246

Accessibility & contrast

On white

5.03
#2E7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2E7F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7F1F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7F1F#FFFFFF#000000##FFFFFF
##2E7F1F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#796C29
Tritanopia (blue-blind)
#217B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2e7f1f;
/* rgb */ color: rgb(46, 127, 31);
/* oklch */ color: oklch(52.7% 0.152 140.9);
Tailwind
colors: {
  custom: {
    50: '#72a561',
    500: '#2e7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f1f;
$custom-light: #72a561;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f1f",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 110.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52705,
    "c": 0.15188,
    "h": 140.9
  },
  "luminance": 0.15859
}

Semantic roles & 50–950 ramp

primary
#2E7F1F
secondary
#A148B2
accent
#44E4CB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2E7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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