#2B7512#2B7512

#2B7512 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.148 H 139.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#2B7512
RGBrgb(43, 117, 18)
HSLhsl(105, 73%, 26%)
HSVhsv(105, 85%, 46%)
CMYKcmyk(63.2%, 0%, 84.6%, 54.1%)
CIE-LABlab(43.18, -40.95, 43.41)
CIE-LCHlch(43.18, 59.68, 133.33°)
OKLaboklab(49.67% -0.1127 0.0961)
OKLCHoklch(49.67% 0.148 139.5)
XYZxyz(7.4664, 13.2792, 2.7418)
Luminance0.1328 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7512 #5C1275
analogous
#5D7512 #2B7512 #12752A
triadic
#2B7512 #122B75 #75122B
tetradic
#2B7512 #125D75 #5C1275 #752A12
square
#2B7512 #125D75 #5C1275 #752A12
split-complementary
#2B7512 #2A1275 #75125D
monochromatic
#0A1B04 #18400A #2B7512 #3EAA1A #53DD24

Accessibility & contrast

On white

5.74
#2B7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2B7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7512
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7512#FFFFFF#000000##FFFFFF
##2B75121.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#217163
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2b7512;
/* rgb */ color: rgb(43, 117, 18);
/* oklch */ color: oklch(49.7% 0.148 139.5);
Tailwind
colors: {
  custom: {
    50: '#6f9d5a',
    500: '#2b7512',
    950: '#000000',
  },
}
SCSS
$custom: #2b7512;
$custom-light: #6f9d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7512",
  "rgb": {
    "r": 43,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 104.848,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.4967,
    "c": 0.14807,
    "h": 139.5
  },
  "luminance": 0.1328
}

Semantic roles & 50–950 ramp

primary
#2B7512
secondary
#8E37AC
accent
#38F0C1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7512

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

Preview Lab → · Contrast checker → · Palette generator →

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