#2E7B17#2E7B17

#2E7B17 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.152 H 139.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2E7B17
RGBrgb(46, 123, 23)
HSLhsl(106, 68%, 29%)
HSVhsv(106, 81%, 48%)
CMYKcmyk(62.6%, 0%, 81.3%, 51.8%)
CIE-LABlab(45.37, -42.13, 43.91)
CIE-LCHlch(45.37, 60.85, 133.81°)
OKLaboklab(51.52% -0.1158 0.0978)
OKLCHoklch(51.52% 0.152 139.8)
XYZxyz(8.3640, 14.8079, 3.2279)
Luminance0.1481 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7B17 #64177B
analogous
#607B17 #2E7B17 #177B32
triadic
#2E7B17 #172E7B #7B172E
tetradic
#2E7B17 #17607B #64177B #7B3217
square
#2E7B17 #17607B #64177B #7B3217
split-complementary
#2E7B17 #32177B #7B1760
monochromatic
#0A1A05 #1B470D #2E7B17 #41AF21 #5AD933

Accessibility & contrast

On white

5.30
#2E7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2E7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7B17
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7B17#FFFFFF#000000##FFFFFF
##2E7B171.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#247768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2e7b17;
/* rgb */ color: rgb(46, 123, 23);
/* oklch */ color: oklch(51.5% 0.152 139.8);
Tailwind
colors: {
  custom: {
    50: '#71a25d',
    500: '#2e7b17',
    950: '#000000',
  },
}
SCSS
$custom: #2e7b17;
$custom-light: #71a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7b17",
  "rgb": {
    "r": 46,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 106.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51517,
    "c": 0.15157,
    "h": 139.8
  },
  "luminance": 0.14809
}

Semantic roles & 50–950 ramp

primary
#2E7B17
secondary
#963EB0
accent
#3CEBC3
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2E7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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