#2B7312#2B7312

#2B7312 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.146 H 139.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2B7312
RGBrgb(43, 115, 18)
HSLhsl(105, 73%, 26%)
HSVhsv(105, 84%, 45%)
CMYKcmyk(62.6%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.49, -40.19, 42.77)
CIE-LCHlch(42.49, 58.69, 133.22°)
OKLaboklab(49.1% -0.1106 0.0947)
OKLCHoklch(49.1% 0.146 139.4)
XYZxyz(7.2359, 12.8181, 2.6650)
Luminance0.1282 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7312 #5A1273
analogous
#5B7312 #2B7312 #127329
triadic
#2B7312 #122B73 #73122B
tetradic
#2B7312 #125B73 #5A1273 #732912
square
#2B7312 #125B73 #5A1273 #732912
split-complementary
#2B7312 #291273 #73125B
monochromatic
#0A1A04 #173E0A #2B7312 #3FA81A #53DD23

Accessibility & contrast

On white

5.89
#2B7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2B7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7312
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7312#FFFFFF#000000##FFFFFF
##2B73121.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E621E
Tritanopia (blue-blind)
#226F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b7312;
/* rgb */ color: rgb(43, 115, 18);
/* oklch */ color: oklch(49.1% 0.146 139.4);
Tailwind
colors: {
  custom: {
    50: '#6e9c5a',
    500: '#2b7312',
    950: '#000000',
  },
}
SCSS
$custom: #2b7312;
$custom-light: #6e9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7312",
  "rgb": {
    "r": 43,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 104.536,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49097,
    "c": 0.14564,
    "h": 139.4
  },
  "luminance": 0.12819
}

Semantic roles & 50–950 ramp

primary
#2B7312
secondary
#8C37AA
accent
#38F0C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2B7312

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

Preview Lab → · Contrast checker → · Palette generator →

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