#2E7817#2E7817

#2E7817 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.148 H 139.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#2E7817
RGBrgb(46, 120, 23)
HSLhsl(106, 68%, 28%)
HSVhsv(106, 81%, 47%)
CMYKcmyk(61.7%, 0%, 80.8%, 52.9%)
CIE-LABlab(44.34, -40.99, 42.93)
CIE-LCHlch(44.34, 59.35, 133.68°)
OKLaboklab(50.67% -0.1127 0.0958)
OKLCHoklch(50.67% 0.148 139.6)
XYZxyz(7.9975, 14.0749, 3.1057)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7817 #611778
analogous
#5E7817 #2E7817 #177830
triadic
#2E7817 #172E78 #78172E
tetradic
#2E7817 #175E78 #611778 #783017
square
#2E7817 #175E78 #611778 #783017
split-complementary
#2E7817 #301778 #78175E
monochromatic
#0A1A05 #1A450D #2E7817 #42AB21 #59D832

Accessibility & contrast

On white

5.50
#2E7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2E7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7817
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7817#FFFFFF#000000##FFFFFF
##2E78171.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#726722
Tritanopia (blue-blind)
#257466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2e7817;
/* rgb */ color: rgb(46, 120, 23);
/* oklch */ color: oklch(50.7% 0.148 139.6);
Tailwind
colors: {
  custom: {
    50: '#71a05d',
    500: '#2e7817',
    950: '#000000',
  },
}
SCSS
$custom: #2e7817;
$custom-light: #71a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7817",
  "rgb": {
    "r": 46,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 105.773,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50665,
    "c": 0.14789,
    "h": 139.6
  },
  "luminance": 0.14076
}

Semantic roles & 50–950 ramp

primary
#2E7817
secondary
#933EAD
accent
#3DEBC2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2E7817

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

Preview Lab → · Contrast checker → · Palette generator →

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