#2B7942#2B7942

#2B7942 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.4% C 0.115 H 150.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2B7942
RGBrgb(43, 121, 66)
HSLhsl(138, 48%, 32%)
HSVhsv(138, 64%, 47%)
CMYKcmyk(64.5%, 0%, 45.5%, 52.5%)
CIE-LABlab(45.05, -36.83, 23.27)
CIE-LCHlch(45.05, 43.57, 147.71°)
OKLaboklab(51.38% -0.0995 0.0573)
OKLCHoklch(51.38% 0.115 150)
XYZxyz(8.8163, 14.5808, 7.5030)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7942 #792B62
analogous
#3B792B #2B7942 #2B7969
triadic
#2B7942 #422B79 #79422B
tetradic
#2B7942 #2B3B79 #792B62 #79692B
square
#2B7942 #2B3B79 #792B62 #79692B
split-complementary
#2B7942 #692B79 #792B3B
monochromatic
#0B1F11 #1B4C29 #2B7942 #3BA65B #5AC479

Accessibility & contrast

On white

5.36
#2B7942 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2B7942 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7942
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7942#FFFFFF#000000##FFFFFF
##2B79421.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3E
Deuteranopia (green-blind)
#706846
Tritanopia (blue-blind)
#12776C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2b7942;
/* rgb */ color: rgb(43, 121, 66);
/* oklch */ color: oklch(51.4% 0.115 150.0);
Tailwind
colors: {
  custom: {
    50: '#6da077',
    500: '#2b7942',
    950: '#000000',
  },
}
SCSS
$custom: #2b7942;
$custom-light: #6da077;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7942",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 66
  },
  "hsl": {
    "h": 137.692,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51379,
    "c": 0.11481,
    "h": 150
  },
  "luminance": 0.14582
}

Semantic roles & 50–950 ramp

primary
#2B7942
secondary
#AA5691
accent
#51AFD7
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2B7942

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

Preview Lab → · Contrast checker → · Palette generator →

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