#2E7F12#2E7F12

#2E7F12 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.159 H 139.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2E7F12
RGBrgb(46, 127, 18)
HSLhsl(105, 75%, 28%)
HSVhsv(105, 86%, 50%)
CMYKcmyk(63.8%, 0%, 85.8%, 50.2%)
CIE-LABlab(46.71, -43.91, 46.68)
CIE-LCHlch(46.71, 64.09, 133.25°)
OKLaboklab(52.62% -0.1208 0.1029)
OKLCHoklch(52.62% 0.159 139.6)
XYZxyz(8.8249, 15.8024, 3.1573)
Luminance0.1580 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7F12 #63127F
analogous
#647F12 #2E7F12 #127F2C
triadic
#2E7F12 #122E7F #7F122E
tetradic
#2E7F12 #12647F #63127F #7F2C12
square
#2E7F12 #12647F #63127F #7F2C12
split-complementary
#2E7F12 #2C127F #7F1264
monochromatic
#0A1B04 #1B490A #2E7F12 #41B51A #59E12B

Accessibility & contrast

On white

5.05
#2E7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2E7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7F12
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7F12#FFFFFF#000000##FFFFFF
##2E7F121.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#237A6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2e7f12;
/* rgb */ color: rgb(46, 127, 18);
/* oklch */ color: oklch(52.6% 0.159 139.6);
Tailwind
colors: {
  custom: {
    50: '#72a55c',
    500: '#2e7f12',
    950: '#000000',
  },
}
SCSS
$custom: #2e7f12;
$custom-light: #72a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7f12",
  "rgb": {
    "r": 46,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 104.587,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52621,
    "c": 0.15868,
    "h": 139.6
  },
  "luminance": 0.15803
}

Semantic roles & 50–950 ramp

primary
#2E7F12
secondary
#9538B5
accent
#36F2C2
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2E7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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