#2B7940#2B7940

#2B7940 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.3% C 0.117 H 149.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2B7940
RGBrgb(43, 121, 64)
HSLhsl(136, 48%, 32%)
HSVhsv(136, 64%, 47%)
CMYKcmyk(64.5%, 0%, 47.1%, 52.5%)
CIE-LABlab(45.02, -37.19, 24.34)
CIE-LCHlch(45.02, 44.45, 146.79°)
OKLaboklab(51.34% -0.1004 0.0597)
OKLCHoklch(51.34% 0.117 149.3)
XYZxyz(8.7584, 14.5576, 7.1978)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7940 #792B64
analogous
#3D792B #2B7940 #2B7967
triadic
#2B7940 #402B79 #79402B
tetradic
#2B7940 #2B3D79 #792B64 #79672B
square
#2B7940 #2B3D79 #792B64 #79672B
split-complementary
#2B7940 #672B79 #792B3D
monochromatic
#0B1F10 #1B4C28 #2B7940 #3BA658 #5AC477

Accessibility & contrast

On white

5.37
#2B7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2B7940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7940
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7940#FFFFFF#000000##FFFFFF
##2B79401.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#706844
Tritanopia (blue-blind)
#13776B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2b7940;
/* rgb */ color: rgb(43, 121, 64);
/* oklch */ color: oklch(51.3% 0.117 149.3);
Tailwind
colors: {
  custom: {
    50: '#6da076',
    500: '#2b7940',
    950: '#000000',
  },
}
SCSS
$custom: #2b7940;
$custom-light: #6da076;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7940",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 136.154,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51342,
    "c": 0.11684,
    "h": 149.3
  },
  "luminance": 0.14559
}

Semantic roles & 50–950 ramp

primary
#2B7940
secondary
#AA5693
accent
#51B3D7
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2B7940

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

Preview Lab → · Contrast checker → · Palette generator →

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