#2E7C12#2E7C12

#2E7C12 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.155 H 139.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2E7C12
RGBrgb(46, 124, 18)
HSLhsl(104, 75%, 28%)
HSVhsv(104, 85%, 49%)
CMYKcmyk(62.9%, 0%, 85.5%, 51.4%)
CIE-LABlab(45.69, -42.80, 45.75)
CIE-LCHlch(45.69, 62.65, 133.09°)
OKLaboklab(51.77% -0.1178 0.1009)
OKLCHoklch(51.77% 0.155 139.4)
XYZxyz(8.4432, 15.0390, 3.0300)
Luminance0.1504 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7C12 #60127C
analogous
#637C12 #2E7C12 #127C2B
triadic
#2E7C12 #122E7C #7C122E
tetradic
#2E7C12 #12637C #60127C #7C2B12
square
#2E7C12 #12637C #60127C #7C2B12
split-complementary
#2E7C12 #2B127C #7C1263
monochromatic
#0A1B04 #1A470A #2E7C12 #42B11A #59E029

Accessibility & contrast

On white

5.24
#2E7C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2E7C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7C12
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7C12#FFFFFF#000000##FFFFFF
##2E7C121.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766A20
Tritanopia (blue-blind)
#247869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7c12;
/* rgb */ color: rgb(46, 124, 18);
/* oklch */ color: oklch(51.8% 0.155 139.4);
Tailwind
colors: {
  custom: {
    50: '#72a35b',
    500: '#2e7c12',
    950: '#000000',
  },
}
SCSS
$custom: #2e7c12;
$custom-light: #72a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7c12",
  "rgb": {
    "r": 46,
    "g": 124,
    "b": 18
  },
  "hsl": {
    "h": 104.151,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51772,
    "c": 0.15514,
    "h": 139.4
  },
  "luminance": 0.1504
}

Semantic roles & 50–950 ramp

primary
#2E7C12
secondary
#9238B2
accent
#37F1C0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2E7C12

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

Preview Lab → · Contrast checker → · Palette generator →

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