#2E7C17#2E7C17

#2E7C17 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.153 H 139.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2E7C17
RGBrgb(46, 124, 23)
HSLhsl(106, 69%, 29%)
HSVhsv(106, 81%, 49%)
CMYKcmyk(62.9%, 0%, 81.5%, 51.4%)
CIE-LABlab(45.71, -42.51, 44.24)
CIE-LCHlch(45.71, 61.35, 133.86°)
OKLaboklab(51.8% -0.1168 0.0985)
OKLCHoklch(51.8% 0.153 139.9)
XYZxyz(8.4886, 15.0572, 3.2694)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7C17 #65177C
analogous
#617C17 #2E7C17 #177C33
triadic
#2E7C17 #172E7C #7C172E
tetradic
#2E7C17 #17617C #65177C #7C3317
square
#2E7C17 #17617C #65177C #7C3317
split-complementary
#2E7C17 #33177C #7C1761
monochromatic
#0A1A05 #1B480D #2E7C17 #41B021 #5AD934

Accessibility & contrast

On white

5.23
#2E7C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2E7C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7C17
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7C17#FFFFFF#000000##FFFFFF
##2E7C171.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#247869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7c17;
/* rgb */ color: rgb(46, 124, 23);
/* oklch */ color: oklch(51.8% 0.153 139.9);
Tailwind
colors: {
  custom: {
    50: '#71a35d',
    500: '#2e7c17',
    950: '#000000',
  },
}
SCSS
$custom: #2e7c17;
$custom-light: #71a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7c17",
  "rgb": {
    "r": 46,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 106.337,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.518,
    "c": 0.15278,
    "h": 139.9
  },
  "luminance": 0.15058
}

Semantic roles & 50–950 ramp

primary
#2E7C17
secondary
#973EB1
accent
#3CECC4
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2E7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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