#2E7912#2E7912

#2E7912 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.152 H 139.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#2E7912
RGBrgb(46, 121, 18)
HSLhsl(104, 74%, 27%)
HSVhsv(104, 85%, 47%)
CMYKcmyk(62%, 0%, 85.1%, 52.5%)
CIE-LABlab(44.66, -41.67, 44.81)
CIE-LCHlch(44.66, 61.19, 132.92°)
OKLaboklab(50.92% -0.1148 0.099)
OKLCHoklch(50.92% 0.152 139.2)
XYZxyz(8.0729, 14.2985, 2.9066)
Luminance0.1430 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7912 #5D1279
analogous
#627912 #2E7912 #127929
triadic
#2E7912 #122E79 #79122E
tetradic
#2E7912 #126279 #5D1279 #792912
square
#2E7912 #126279 #5D1279 #792912
split-complementary
#2E7912 #291279 #791262
monochromatic
#0A1B04 #1A440A #2E7912 #42AE1A #59DF27

Accessibility & contrast

On white

5.44
#2E7912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2E7912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7912
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7912#FFFFFF#000000##FFFFFF
##2E79121.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#74671F
Tritanopia (blue-blind)
#257566
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2e7912;
/* rgb */ color: rgb(46, 121, 18);
/* oklch */ color: oklch(50.9% 0.152 139.2);
Tailwind
colors: {
  custom: {
    50: '#71a05b',
    500: '#2e7912',
    950: '#000000',
  },
}
SCSS
$custom: #2e7912;
$custom-light: #71a05b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7912",
  "rgb": {
    "r": 46,
    "g": 121,
    "b": 18
  },
  "hsl": {
    "h": 103.689,
    "s": 74.101,
    "l": 27.255
  },
  "oklch": {
    "l": 0.5092,
    "c": 0.15156,
    "h": 139.2
  },
  "luminance": 0.14299
}

Semantic roles & 50–950 ramp

primary
#2E7912
secondary
#8F38AF
accent
#37F1BE
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2E7912

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

Preview Lab → · Contrast checker → · Palette generator →

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