#2E7F17#2E7F17

#2E7F17 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.156 H 140.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2E7F17
RGBrgb(46, 127, 23)
HSLhsl(107, 69%, 29%)
HSVhsv(107, 82%, 50%)
CMYKcmyk(63.8%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.74, -43.63, 45.21)
CIE-LCHlch(46.74, 62.83, 133.98°)
OKLaboklab(52.65% -0.1198 0.1005)
OKLCHoklch(52.65% 0.156 140)
XYZxyz(8.8703, 15.8206, 3.3967)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F17 #68177F
analogous
#627F17 #2E7F17 #177F34
triadic
#2E7F17 #172E7F #7F172E
tetradic
#2E7F17 #17627F #68177F #7F3417
square
#2E7F17 #17627F #68177F #7F3417
split-complementary
#2E7F17 #34177F #7F1762
monochromatic
#091A05 #1B4B0E #2E7F17 #41B320 #5ADB36

Accessibility & contrast

On white

5.04
#2E7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2E7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7F17
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7F17#FFFFFF#000000##FFFFFF
##2E7F171.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#237B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2e7f17;
/* rgb */ color: rgb(46, 127, 23);
/* oklch */ color: oklch(52.6% 0.156 140.0);
Tailwind
colors: {
  custom: {
    50: '#72a55e',
    500: '#2e7f17',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f17;
$custom-light: #72a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f17",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 106.731,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52649,
    "c": 0.15639,
    "h": 140
  },
  "luminance": 0.15821
}

Semantic roles & 50–950 ramp

primary
#2E7F17
secondary
#9A3EB4
accent
#3CECC5
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2E7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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