#2E7E12#2E7E12

#2E7E12 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.158 H 139.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2E7E12
RGBrgb(46, 126, 18)
HSLhsl(104, 75%, 28%)
HSVhsv(104, 86%, 49%)
CMYKcmyk(63.5%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.37, -43.54, 46.37)
CIE-LCHlch(46.37, 63.61, 133.20°)
OKLaboklab(52.34% -0.1198 0.1022)
OKLCHoklch(52.34% 0.158 139.5)
XYZxyz(8.6964, 15.5454, 3.1144)
Luminance0.1555 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7E12 #62127E
analogous
#647E12 #2E7E12 #127E2C
triadic
#2E7E12 #122E7E #7E122E
tetradic
#2E7E12 #12647E #62127E #7E2C12
square
#2E7E12 #12647E #62127E #7E2C12
split-complementary
#2E7E12 #2C127E #7E1264
monochromatic
#0A1B04 #1A480A #2E7E12 #42B41A #59E12A

Accessibility & contrast

On white

5.11
#2E7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2E7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7E12
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7E12#FFFFFF#000000##FFFFFF
##2E7E121.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786B20
Tritanopia (blue-blind)
#237A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2e7e12;
/* rgb */ color: rgb(46, 126, 18);
/* oklch */ color: oklch(52.3% 0.158 139.5);
Tailwind
colors: {
  custom: {
    50: '#72a45b',
    500: '#2e7e12',
    950: '#000000',
  },
}
SCSS
$custom: #2e7e12;
$custom-light: #72a45b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7e12",
  "rgb": {
    "r": 46,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 104.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52338,
    "c": 0.1575,
    "h": 139.5
  },
  "luminance": 0.15546
}

Semantic roles & 50–950 ramp

primary
#2E7E12
secondary
#9438B4
accent
#36F2C1
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2E7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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