#2E7A18#2E7A18

#2E7A18 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.150 H 139.9°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2E7A18
RGBrgb(46, 122, 24)
HSLhsl(107, 67%, 29%)
HSVhsv(107, 80%, 48%)
CMYKcmyk(62.3%, 0%, 80.3%, 52.2%)
CIE-LABlab(45.03, -41.68, 43.25)
CIE-LCHlch(45.03, 60.07, 133.94°)
OKLaboklab(51.24% -0.1145 0.0966)
OKLCHoklch(51.24% 0.15 139.9)
XYZxyz(8.2507, 14.5651, 3.2405)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7A18 #64187A
analogous
#5F7A18 #2E7A18 #187A33
triadic
#2E7A18 #182E7A #7A182E
tetradic
#2E7A18 #185F7A #64187A #7A3318
square
#2E7A18 #185F7A #64187A #7A3318
split-complementary
#2E7A18 #33187A #7A185F
monochromatic
#0A1A05 #1B470E #2E7A18 #41AD22 #5AD735

Accessibility & contrast

On white

5.37
#2E7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2E7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7A18
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7A18#FFFFFF#000000##FFFFFF
##2E7A181.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#247668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2e7a18;
/* rgb */ color: rgb(46, 122, 24);
/* oklch */ color: oklch(51.2% 0.150 139.9);
Tailwind
colors: {
  custom: {
    50: '#71a15d',
    500: '#2e7a18',
    950: '#000000',
  },
}
SCSS
$custom: #2e7a18;
$custom-light: #71a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7a18",
  "rgb": {
    "r": 46,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 106.531,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5124,
    "c": 0.14981,
    "h": 139.9
  },
  "luminance": 0.14566
}

Semantic roles & 50–950 ramp

primary
#2E7A18
secondary
#963FAF
accent
#3EEAC3
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2E7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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