#2B8731#2B8731

#2B8731 is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.0% C 0.150 H 144.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#2B8731
RGBrgb(43, 135, 49)
HSLhsl(124, 52%, 35%)
HSVhsv(124, 68%, 53%)
CMYKcmyk(68.1%, 0%, 63.7%, 47.1%)
CIE-LABlab(49.57, -44.92, 37.57)
CIE-LCHlch(49.57, 58.56, 140.09°)
OKLaboklab(55.03% -0.1217 0.0879)
OKLCHoklch(55.03% 0.15 144.2)
XYZxyz(10.2140, 18.0622, 5.8532)
Luminance0.1806 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B8731 #872B81
analogous
#53872B #2B8731 #2B875F
triadic
#2B8731 #312B87 #87312B
tetradic
#2B8731 #2B5387 #872B81 #875F2B
square
#2B8731 #2B5387 #872B81 #875F2B
split-complementary
#2B8731 #5F2B87 #872B53
monochromatic
#0D2A0F #1C5920 #2B8731 #3AB542 #60CC67

Accessibility & contrast

On white

4.55
#2B8731 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#2B8731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2B8731
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B8731#FFFFFF#000000##000000
##2B87311.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A27
Deuteranopia (green-blind)
#7E7338
Tritanopia (blue-blind)
#128375
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2b8731;
/* rgb */ color: rgb(43, 135, 49);
/* oklch */ color: oklch(55.0% 0.150 144.2);
Tailwind
colors: {
  custom: {
    50: '#71ab6c',
    500: '#2b8731',
    950: '#000000',
  },
}
SCSS
$custom: #2b8731;
$custom-light: #71ab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b8731",
  "rgb": {
    "r": 43,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 123.913,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.55034,
    "c": 0.15012,
    "h": 144.2
  },
  "luminance": 0.18063
}

Semantic roles & 50–950 ramp

primary
#2B8731
secondary
#B25BAD
accent
#4DD2DB
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2B8731

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

Preview Lab → · Contrast checker → · Palette generator →

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