#2E7517#2E7517

#2E7517 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.8% C 0.144 H 139.5°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#2E7517
RGBrgb(46, 117, 23)
HSLhsl(105, 67%, 27%)
HSVhsv(105, 80%, 46%)
CMYKcmyk(60.7%, 0%, 80.3%, 54.1%)
CIE-LABlab(43.31, -39.83, 41.93)
CIE-LCHlch(43.31, 57.83, 133.53°)
OKLaboklab(49.81% -0.1096 0.0937)
OKLCHoklch(49.81% 0.144 139.5)
XYZxyz(7.6423, 13.3646, 2.9873)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7517 #5E1775
analogous
#5D7517 #2E7517 #17752F
triadic
#2E7517 #172E75 #75172E
tetradic
#2E7517 #175D75 #5E1775 #752F17
square
#2E7517 #175D75 #5E1775 #752F17
split-complementary
#2E7517 #2F1775 #75175D
monochromatic
#0A1A05 #1A420D #2E7517 #42A821 #59D630

Accessibility & contrast

On white

5.72
#2E7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#2E7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7517
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7517#FFFFFF#000000##FFFFFF
##2E75171.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A01
Deuteranopia (green-blind)
#706422
Tritanopia (blue-blind)
#267163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2e7517;
/* rgb */ color: rgb(46, 117, 23);
/* oklch */ color: oklch(49.8% 0.144 139.5);
Tailwind
colors: {
  custom: {
    50: '#709d5c',
    500: '#2e7517',
    950: '#000000',
  },
}
SCSS
$custom: #2e7517;
$custom-light: #709d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7517",
  "rgb": {
    "r": 46,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 105.319,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49812,
    "c": 0.14417,
    "h": 139.5
  },
  "luminance": 0.13365
}

Semantic roles & 50–950 ramp

primary
#2E7517
secondary
#903DAA
accent
#3EEAC0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2E7517

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

Preview Lab → · Contrast checker → · Palette generator →

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