#2E7A17#2E7A17

#2E7A17 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.150 H 139.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2E7A17
RGBrgb(46, 122, 23)
HSLhsl(106, 68%, 28%)
HSVhsv(106, 81%, 48%)
CMYKcmyk(62.3%, 0%, 81.1%, 52.2%)
CIE-LABlab(45.03, -41.75, 43.58)
CIE-LCHlch(45.03, 60.35, 133.77°)
OKLaboklab(51.23% -0.1147 0.0971)
OKLCHoklch(51.23% 0.15 139.8)
XYZxyz(8.2405, 14.5610, 3.1867)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7A17 #63177A
analogous
#5F7A17 #2E7A17 #177A31
triadic
#2E7A17 #172E7A #7A172E
tetradic
#2E7A17 #175F7A #63177A #7A3117
square
#2E7A17 #175F7A #63177A #7A3117
split-complementary
#2E7A17 #31177A #7A175F
monochromatic
#0A1A05 #1B470D #2E7A17 #41AD21 #59D933

Accessibility & contrast

On white

5.37
#2E7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2E7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7A17
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7A17#FFFFFF#000000##FFFFFF
##2E7A171.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e7a17;
/* rgb */ color: rgb(46, 122, 23);
/* oklch */ color: oklch(51.2% 0.150 139.8);
Tailwind
colors: {
  custom: {
    50: '#71a15d',
    500: '#2e7a17',
    950: '#000000',
  },
}
SCSS
$custom: #2e7a17;
$custom-light: #71a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7a17",
  "rgb": {
    "r": 46,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 106.061,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.15035,
    "h": 139.8
  },
  "luminance": 0.14562
}

Semantic roles & 50–950 ramp

primary
#2E7A17
secondary
#953EAF
accent
#3DEBC3
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2E7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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