#2E7A1B#2E7A1B

#2E7A1B is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.148 H 140.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2E7A1B
RGBrgb(46, 122, 27)
HSLhsl(108, 64%, 29%)
HSVhsv(108, 78%, 48%)
CMYKcmyk(62.3%, 0%, 77.9%, 52.2%)
CIE-LABlab(45.05, -41.47, 42.19)
CIE-LCHlch(45.05, 59.16, 134.50°)
OKLaboklab(51.26% -0.1138 0.0948)
OKLCHoklch(51.26% 0.148 140.2)
XYZxyz(8.2837, 14.5783, 3.4141)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7A1B #671B7A
analogous
#5E7A1B #2E7A1B #1B7A38
triadic
#2E7A1B #1B2E7A #7A1B2E
tetradic
#2E7A1B #1B5E7A #671B7A #7A381B
square
#2E7A1B #1B5E7A #671B7A #7A381B
split-complementary
#2E7A1B #381B7A #7A1B5E
monochromatic
#091906 #1B4810 #2E7A1B #41AC26 #5AD43C

Accessibility & contrast

On white

5.36
#2E7A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2E7A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7A1B
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7A1B#FFFFFF#000000##FFFFFF
##2E7A1B1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#247668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2e7a1b;
/* rgb */ color: rgb(46, 122, 27);
/* oklch */ color: oklch(51.3% 0.148 140.2);
Tailwind
colors: {
  custom: {
    50: '#71a15f',
    500: '#2e7a1b',
    950: '#000000',
  },
}
SCSS
$custom: #2e7a1b;
$custom-light: #71a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7a1b",
  "rgb": {
    "r": 46,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 108,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51261,
    "c": 0.14811,
    "h": 140.2
  },
  "luminance": 0.14579
}

Semantic roles & 50–950 ramp

primary
#2E7A1B
secondary
#9943AE
accent
#41E7C6
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2E7A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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