#2B871C#2B871C

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

Color values

HEX#2B871C
RGBrgb(43, 135, 28)
HSLhsl(112, 66%, 32%)
HSVhsv(112, 79%, 53%)
CMYKcmyk(68.1%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.40, -46.91, 46.07)
CIE-LCHlch(49.40, 65.75, 135.51°)
OKLaboklab(54.84% -0.1282 0.1031)
OKLCHoklch(54.84% 0.165 141.2)
XYZxyz(9.8693, 17.9244, 4.0380)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B871C #781C87
analogous
#61871C #2B871C #1C8743
triadic
#2B871C #1C2B87 #871C2B
tetradic
#2B871C #1C6187 #781C87 #87431C
square
#2B871C #1C6187 #781C87 #87431C
split-complementary
#2B871C #431C87 #871C61
monochromatic
#0B2207 #1B5411 #2B871C #3BBA27 #5AD845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B871C#FFFFFF#000000##000000
##2B871C1.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)
#8B7A02
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#198373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2b871c;
/* rgb */ color: rgb(43, 135, 28);
/* oklch */ color: oklch(54.8% 0.165 141.2);
Tailwind
colors: {
  custom: {
    50: '#72ab61',
    500: '#2b871c',
    950: '#000000',
  },
}
SCSS
$custom: #2b871c;
$custom-light: #72ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#2b871c",
  "rgb": {
    "r": 43,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 111.589,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.1645,
    "h": 141.2
  },
  "luminance": 0.17925
}

Semantic roles & 50–950 ramp

primary
#2B871C
secondary
#AA45BA
accent
#3FE9D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2B871C

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

Preview Lab → · Contrast checker → · Palette generator →

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