#2B7A42#2B7A42

#2B7A42 is a mid, moderate green. Relative luminance 0.148; OKLCH L 51.7% C 0.116 H 149.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#2B7A42
RGBrgb(43, 122, 66)
HSLhsl(137, 48%, 32%)
HSVhsv(137, 65%, 48%)
CMYKcmyk(64.8%, 0%, 45.9%, 52.2%)
CIE-LABlab(45.39, -37.25, 23.71)
CIE-LCHlch(45.39, 44.16, 147.53°)
OKLaboklab(51.66% -0.1006 0.0583)
OKLCHoklch(51.66% 0.116 149.9)
XYZxyz(8.9385, 14.8251, 7.5437)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7A42 #7A2B63
analogous
#3C7A2B #2B7A42 #2B7A69
triadic
#2B7A42 #422B7A #7A422B
tetradic
#2B7A42 #2B3C7A #7A2B63 #7A692B
square
#2B7A42 #2B3C7A #7A2B63 #7A692B
split-complementary
#2B7A42 #692B7A #7A2B3C
monochromatic
#0B1F11 #1B4D2A #2B7A42 #3BA75A #5AC579

Accessibility & contrast

On white

5.30
#2B7A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2B7A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7A42
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7A42#FFFFFF#000000##FFFFFF
##2B7A421.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#11786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2b7a42;
/* rgb */ color: rgb(43, 122, 66);
/* oklch */ color: oklch(51.7% 0.116 149.9);
Tailwind
colors: {
  custom: {
    50: '#6ea177',
    500: '#2b7a42',
    950: '#000000',
  },
}
SCSS
$custom: #2b7a42;
$custom-light: #6ea177;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7a42",
  "rgb": {
    "r": 43,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 137.468,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51658,
    "c": 0.11628,
    "h": 149.9
  },
  "luminance": 0.14826
}

Semantic roles & 50–950 ramp

primary
#2B7A42
secondary
#AB5692
accent
#50B0D7
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #2B7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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