#2B841B#2B841B

#2B841B is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.161 H 141.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2B841B
RGBrgb(43, 132, 27)
HSLhsl(111, 66%, 31%)
HSVhsv(111, 80%, 52%)
CMYKcmyk(67.4%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.38, -45.90, 45.42)
CIE-LCHlch(48.38, 64.57, 135.30°)
OKLaboklab(53.99% -0.1255 0.1016)
OKLCHoklch(53.99% 0.161 141)
XYZxyz(9.4449, 17.0943, 3.8385)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B841B #741B84
analogous
#5F841B #2B841B #1B843F
triadic
#2B841B #1B2B84 #841B2B
tetradic
#2B841B #1B5F84 #741B84 #843F1B
square
#2B841B #1B5F84 #741B84 #843F1B
split-complementary
#2B841B #3F1B84 #841B5F
monochromatic
#0A1E06 #1A5111 #2B841B #3CB725 #58D841

Accessibility & contrast

On white

4.75
#2B841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#2B841B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B841B
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B841B#FFFFFF#000000##FFFFFF
##2B841B1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887701
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#1B8070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2b841b;
/* rgb */ color: rgb(43, 132, 27);
/* oklch */ color: oklch(54.0% 0.161 141.0);
Tailwind
colors: {
  custom: {
    50: '#72a960',
    500: '#2b841b',
    950: '#000000',
  },
}
SCSS
$custom: #2b841b;
$custom-light: #72a960;
$custom-dark: #000000;
JSON
{
  "hex": "#2b841b",
  "rgb": {
    "r": 43,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 110.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5399,
    "c": 0.16149,
    "h": 141
  },
  "luminance": 0.17095
}

Semantic roles & 50–950 ramp

primary
#2B841B
secondary
#A643B7
accent
#3FE9CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2B841B

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

Preview Lab → · Contrast checker → · Palette generator →

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