#2E7218#2E7218

#2E7218 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.140 H 139.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2E7218
RGBrgb(46, 114, 24)
HSLhsl(105, 65%, 27%)
HSVhsv(105, 79%, 45%)
CMYKcmyk(59.6%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.28, -38.58, 40.57)
CIE-LCHlch(42.28, 55.99, 133.56°)
OKLaboklab(48.96% -0.1061 0.091)
OKLCHoklch(48.96% 0.14 139.4)
XYZxyz(7.3086, 12.6808, 2.9265)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7218 #5C1872
analogous
#5B7218 #2E7218 #18722F
triadic
#2E7218 #182E72 #72182E
tetradic
#2E7218 #185B72 #5C1872 #722F18
square
#2E7218 #185B72 #5C1872 #722F18
split-complementary
#2E7218 #2F1872 #72185B
monochromatic
#0A1905 #1A3F0D #2E7218 #42A523 #59D431

Accessibility & contrast

On white

5.94
#2E7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2E7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7218
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7218#FFFFFF#000000##FFFFFF
##2E72181.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#266E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2e7218;
/* rgb */ color: rgb(46, 114, 24);
/* oklch */ color: oklch(49.0% 0.140 139.4);
Tailwind
colors: {
  custom: {
    50: '#6f9b5c',
    500: '#2e7218',
    950: '#000000',
  },
}
SCSS
$custom: #2e7218;
$custom-light: #6f9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7218",
  "rgb": {
    "r": 46,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 105.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48964,
    "c": 0.13982,
    "h": 139.4
  },
  "luminance": 0.12681
}

Semantic roles & 50–950 ramp

primary
#2E7218
secondary
#8E3EA7
accent
#40E8BF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2E7218

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

Preview Lab → · Contrast checker → · Palette generator →

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