#2E7C1F#2E7C1F

#2E7C1F is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.148 H 140.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2E7C1F
RGBrgb(46, 124, 31)
HSLhsl(110, 60%, 30%)
HSVhsv(110, 75%, 49%)
CMYKcmyk(62.9%, 0%, 75%, 51.4%)
CIE-LABlab(45.76, -41.91, 41.37)
CIE-LCHlch(45.76, 58.90, 135.37°)
OKLaboklab(51.86% -0.1147 0.0937)
OKLCHoklch(51.86% 0.148 140.8)
XYZxyz(8.5813, 15.0943, 3.7573)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7C1F #6D1F7C
analogous
#5C7C1F #2E7C1F #1F7C3F
triadic
#2E7C1F #1F2E7C #7C1F2E
tetradic
#2E7C1F #1F5C7C #6D1F7C #7C3F1F
square
#2E7C1F #1F5C7C #6D1F7C #7C3F1F
split-complementary
#2E7C1F #3F1F7C #7C1F5C
monochromatic
#0A1A07 #1C4B13 #2E7C1F #40AD2B #5BD045

Accessibility & contrast

On white

5.23
#2E7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2E7C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7C1F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7C1F#FFFFFF#000000##FFFFFF
##2E7C1F1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#22786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7c1f;
/* rgb */ color: rgb(46, 124, 31);
/* oklch */ color: oklch(51.9% 0.148 140.8);
Tailwind
colors: {
  custom: {
    50: '#71a361',
    500: '#2e7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #2e7c1f;
$custom-light: #71a361;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7c1f",
  "rgb": {
    "r": 46,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 110.323,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51858,
    "c": 0.14813,
    "h": 140.8
  },
  "luminance": 0.15095
}

Semantic roles & 50–950 ramp

primary
#2E7C1F
secondary
#9F48AF
accent
#45E3CA
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2E7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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