#2B7842#2B7842

#2B7842 is a mid, moderate green. Relative luminance 0.143; OKLCH L 51.1% C 0.113 H 150.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2B7842
RGBrgb(43, 120, 66)
HSLhsl(138, 47%, 32%)
HSVhsv(138, 64%, 47%)
CMYKcmyk(64.2%, 0%, 45%, 52.9%)
CIE-LABlab(44.72, -36.41, 22.83)
CIE-LCHlch(44.72, 42.98, 147.91°)
OKLaboklab(51.1% -0.0984 0.0563)
OKLCHoklch(51.1% 0.113 150.2)
XYZxyz(8.6954, 14.3390, 7.4627)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B7842 #782B61
analogous
#3B782B #2B7842 #2B7869
triadic
#2B7842 #422B78 #78422B
tetradic
#2B7842 #2B3B78 #782B61 #78692B
square
#2B7842 #2B3B78 #782B61 #78692B
split-complementary
#2B7842 #692B78 #782B3B
monochromatic
#0B1E10 #1B4B29 #2B7842 #3BA55B #5AC479

Accessibility & contrast

On white

5.43
#2B7842 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2B7842 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B7842
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B7842#FFFFFF#000000##FFFFFF
##2B78421.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3E
Deuteranopia (green-blind)
#6F6746
Tritanopia (blue-blind)
#12766B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b7842;
/* rgb */ color: rgb(43, 120, 66);
/* oklch */ color: oklch(51.1% 0.113 150.2);
Tailwind
colors: {
  custom: {
    50: '#6da077',
    500: '#2b7842',
    950: '#000000',
  },
}
SCSS
$custom: #2b7842;
$custom-light: #6da077;
$custom-dark: #000000;
JSON
{
  "hex": "#2b7842",
  "rgb": {
    "r": 43,
    "g": 120,
    "b": 66
  },
  "hsl": {
    "h": 137.922,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.511,
    "c": 0.11333,
    "h": 150.2
  },
  "luminance": 0.1434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B7842

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

Preview Lab → · Contrast checker → · Palette generator →

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