#2E7D17#2E7D17

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

Color values

HEX#2E7D17
RGBrgb(46, 125, 23)
HSLhsl(106, 69%, 29%)
HSVhsv(106, 82%, 49%)
CMYKcmyk(63.2%, 0%, 81.6%, 51%)
CIE-LABlab(46.05, -42.88, 44.56)
CIE-LCHlch(46.05, 61.84, 133.90°)
OKLaboklab(52.08% -0.1178 0.0992)
OKLCHoklch(52.08% 0.154 139.9)
XYZxyz(8.6146, 15.3091, 3.3114)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7D17 #66177D
analogous
#617D17 #2E7D17 #177D33
triadic
#2E7D17 #172E7D #7D172E
tetradic
#2E7D17 #17617D #66177D #7D3317
square
#2E7D17 #17617D #66177D #7D3317
split-complementary
#2E7D17 #33177D #7D1761
monochromatic
#0A1A05 #1B490D #2E7D17 #41B121 #5ADA35

Accessibility & contrast

On white

5.17
#2E7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2E7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7D17
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7D17#FFFFFF#000000##FFFFFF
##2E7D171.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776B23
Tritanopia (blue-blind)
#23796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2e7d17;
/* rgb */ color: rgb(46, 125, 23);
/* oklch */ color: oklch(52.1% 0.154 139.9);
Tailwind
colors: {
  custom: {
    50: '#72a35d',
    500: '#2e7d17',
    950: '#000000',
  },
}
SCSS
$custom: #2e7d17;
$custom-light: #72a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7d17",
  "rgb": {
    "r": 46,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 106.471,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52083,
    "c": 0.15399,
    "h": 139.9
  },
  "luminance": 0.1531
}

Semantic roles & 50–950 ramp

primary
#2E7D17
secondary
#983EB2
accent
#3CECC4
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2E7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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