#2B871B#2B871B

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

Color values

HEX#2B871B
RGBrgb(43, 135, 27)
HSLhsl(111, 67%, 32%)
HSVhsv(111, 80%, 53%)
CMYKcmyk(68.1%, 0%, 80%, 47.1%)
CIE-LABlab(49.40, -46.97, 46.40)
CIE-LCHlch(49.40, 66.03, 135.35°)
OKLaboklab(54.84% -0.1284 0.1037)
OKLCHoklch(54.84% 0.165 141.1)
XYZxyz(9.8576, 17.9197, 3.9760)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B871B #771B87
analogous
#61871B #2B871B #1B8741
triadic
#2B871B #1B2B87 #871B2B
tetradic
#2B871B #1B6187 #771B87 #87411B
square
#2B871B #1B6187 #771B87 #87411B
split-complementary
#2B871B #411B87 #871B61
monochromatic
#0B2107 #1B5411 #2B871B #3BBA25 #59D943

Accessibility & contrast

On white

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

On black

4.58
#2B871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2B871B
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B871B#FFFFFF#000000##000000
##2B871B1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#198373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2b871b;
/* rgb */ color: rgb(43, 135, 27);
/* oklch */ color: oklch(54.8% 0.165 141.1);
Tailwind
colors: {
  custom: {
    50: '#72ab61',
    500: '#2b871b',
    950: '#000000',
  },
}
SCSS
$custom: #2b871b;
$custom-light: #72ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#2b871b",
  "rgb": {
    "r": 43,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 111.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54835,
    "c": 0.16502,
    "h": 141.1
  },
  "luminance": 0.17921
}

Semantic roles & 50–950 ramp

primary
#2B871B
secondary
#A944BA
accent
#3EEAD0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2B871B

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

Preview Lab → · Contrast checker → · Palette generator →

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