#2E7D12#2E7D12

#2E7D12 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.156 H 139.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2E7D12
RGBrgb(46, 125, 18)
HSLhsl(104, 75%, 28%)
HSVhsv(104, 86%, 49%)
CMYKcmyk(63.2%, 0%, 85.6%, 51%)
CIE-LABlab(46.03, -43.17, 46.06)
CIE-LCHlch(46.03, 63.13, 133.14°)
OKLaboklab(52.05% -0.1188 0.1016)
OKLCHoklch(52.05% 0.156 139.5)
XYZxyz(8.5691, 15.2909, 3.0720)
Luminance0.1529 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7D12 #61127D
analogous
#637D12 #2E7D12 #127D2B
triadic
#2E7D12 #122E7D #7D122E
tetradic
#2E7D12 #12637D #61127D #7D2B12
square
#2E7D12 #12637D #61127D #7D2B12
split-complementary
#2E7D12 #2B127D #7D1263
monochromatic
#0A1B04 #1A480A #2E7D12 #42B21A #59E029

Accessibility & contrast

On white

5.17
#2E7D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2E7D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7D12
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7D12#FFFFFF#000000##FFFFFF
##2E7D121.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776B20
Tritanopia (blue-blind)
#24796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2e7d12;
/* rgb */ color: rgb(46, 125, 18);
/* oklch */ color: oklch(52.1% 0.156 139.5);
Tailwind
colors: {
  custom: {
    50: '#72a35b',
    500: '#2e7d12',
    950: '#000000',
  },
}
SCSS
$custom: #2e7d12;
$custom-light: #72a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7d12",
  "rgb": {
    "r": 46,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 104.299,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52055,
    "c": 0.15633,
    "h": 139.5
  },
  "luminance": 0.15292
}

Semantic roles & 50–950 ramp

primary
#2E7D12
secondary
#9338B3
accent
#36F1C0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2E7D12

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

Preview Lab → · Contrast checker → · Palette generator →

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