#2B7E12#2B7E12

#2B7E12 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.159 H 140.0°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#2B7E12
RGBrgb(43, 126, 18)
HSLhsl(106, 75%, 28%)
HSVhsv(106, 86%, 49%)
CMYKcmyk(65.9%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.28, -44.29, 46.26)
CIE-LCHlch(46.28, 64.04, 133.75°)
OKLaboklab(52.24% -0.1216 0.102)
OKLCHoklch(52.24% 0.159 140)
XYZxyz(8.5659, 15.4781, 3.1083)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7E12 #65127E
analogous
#617E12 #2B7E12 #127E2F
triadic
#2B7E12 #122B7E #7E122B
tetradic
#2B7E12 #12617E #65127E #7E2F12
square
#2B7E12 #12617E #65127E #7E2F12
split-complementary
#2B7E12 #2F127E #7E1261
monochromatic
#091B04 #19480A #2B7E12 #3DB41A #54E12A

Accessibility & contrast

On white

5.13
#2B7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2B7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7E12
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7E12#FFFFFF#000000##FFFFFF
##2B7E121.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b7e12;
/* rgb */ color: rgb(43, 126, 18);
/* oklch */ color: oklch(52.2% 0.159 140.0);
Tailwind
colors: {
  custom: {
    50: '#71a45b',
    500: '#2b7e12',
    950: '#000000',
  },
}
SCSS
$custom: #2b7e12;
$custom-light: #71a45b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7e12",
  "rgb": {
    "r": 43,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 106.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52238,
    "c": 0.15875,
    "h": 140
  },
  "luminance": 0.15479
}

Semantic roles & 50–950 ramp

primary
#2B7E12
secondary
#9738B4
accent
#36F2C6
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2B7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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