#2B871E#2B871E

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

Color values

HEX#2B871E
RGBrgb(43, 135, 30)
HSLhsl(113, 64%, 32%)
HSVhsv(113, 78%, 53%)
CMYKcmyk(68.1%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.42, -46.76, 45.38)
CIE-LCHlch(49.42, 65.16, 135.86°)
OKLaboklab(54.86% -0.1277 0.102)
OKLCHoklch(54.86% 0.163 141.4)
XYZxyz(9.8941, 17.9343, 4.1683)
Luminance0.1794 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B871E #7A1E87
analogous
#60871E #2B871E #1E8745
triadic
#2B871E #1E2B87 #871E2B
tetradic
#2B871E #1E6087 #7A1E87 #87451E
square
#2B871E #1E6087 #7A1E87 #87451E
split-complementary
#2B871E #451E87 #871E60
monochromatic
#0B2308 #1B5513 #2B871E #3BB929 #5AD749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B871E#FFFFFF#000000##000000
##2B871E1.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)
#8A7A06
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#188373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2b871e;
/* rgb */ color: rgb(43, 135, 30);
/* oklch */ color: oklch(54.9% 0.163 141.4);
Tailwind
colors: {
  custom: {
    50: '#72ab62',
    500: '#2b871e',
    950: '#000000',
  },
}
SCSS
$custom: #2b871e;
$custom-light: #72ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#2b871e",
  "rgb": {
    "r": 43,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 112.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54855,
    "c": 0.1634,
    "h": 141.4
  },
  "luminance": 0.17935
}

Semantic roles & 50–950 ramp

primary
#2B871E
secondary
#AB48B9
accent
#41E7D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2B871E

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

Preview Lab → · Contrast checker → · Palette generator →

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