#2B871F#2B871F

#2B871F is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.9% C 0.163 H 141.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#2B871F
RGBrgb(43, 135, 31)
HSLhsl(113, 63%, 33%)
HSVhsv(113, 77%, 53%)
CMYKcmyk(68.1%, 0%, 77%, 47.1%)
CIE-LABlab(49.42, -46.69, 45.03)
CIE-LCHlch(49.42, 64.86, 136.04°)
OKLaboklab(54.86% -0.1274 0.1014)
OKLCHoklch(54.86% 0.163 141.5)
XYZxyz(9.9070, 17.9394, 4.2366)
Luminance0.1794 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B871F #7B1F87
analogous
#5F871F #2B871F #1F8747
triadic
#2B871F #1F2B87 #871F2B
tetradic
#2B871F #1F5F87 #7B1F87 #87471F
square
#2B871F #1F5F87 #7B1F87 #87471F
split-complementary
#2B871F #471F87 #871F5F
monochromatic
#0B2308 #1B5514 #2B871F #3BB92A #5BD64B

Accessibility & contrast

On white

4.58
#2B871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#2B871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2B871F
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B871F#FFFFFF#000000##000000
##2B871F1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A09
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#188373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2b871f;
/* rgb */ color: rgb(43, 135, 31);
/* oklch */ color: oklch(54.9% 0.163 141.5);
Tailwind
colors: {
  custom: {
    50: '#72ab62',
    500: '#2b871f',
    950: '#000000',
  },
}
SCSS
$custom: #2b871f;
$custom-light: #72ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#2b871f",
  "rgb": {
    "r": 43,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 113.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54862,
    "c": 0.16282,
    "h": 141.5
  },
  "luminance": 0.1794
}

Semantic roles & 50–950 ramp

primary
#2B871F
secondary
#AB4AB8
accent
#42E6D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2B871F

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

Preview Lab → · Contrast checker → · Palette generator →

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