#2B791A#2B791A

#2B791A is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.149 H 140.6°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#2B791A
RGBrgb(43, 121, 26)
HSLhsl(109, 65%, 29%)
HSVhsv(109, 79%, 47%)
CMYKcmyk(64.5%, 0%, 78.5%, 52.5%)
CIE-LABlab(44.61, -41.93, 42.09)
CIE-LCHlch(44.61, 59.41, 134.89°)
OKLaboklab(50.86% -0.1149 0.0945)
OKLCHoklch(50.86% 0.149 140.6)
XYZxyz(8.0197, 14.2622, 3.3073)
Luminance0.1426 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B791A #681A79
analogous
#5B791A #2B791A #1A7939
triadic
#2B791A #1A2B79 #791A2B
tetradic
#2B791A #1A5B79 #681A79 #79391A
square
#2B791A #1A5B79 #681A79 #79391A
split-complementary
#2B791A #391A79 #791A5B
monochromatic
#091905 #19470F #2B791A #3DAB25 #55D439

Accessibility & contrast

On white

5.45
#2B791A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#2B791A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B791A
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B791A#FFFFFF#000000##FFFFFF
##2B791A1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D05
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#1F7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2b791a;
/* rgb */ color: rgb(43, 121, 26);
/* oklch */ color: oklch(50.9% 0.149 140.6);
Tailwind
colors: {
  custom: {
    50: '#6fa05e',
    500: '#2b791a',
    950: '#000000',
  },
}
SCSS
$custom: #2b791a;
$custom-light: #6fa05e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b791a",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 109.263,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50864,
    "c": 0.14875,
    "h": 140.6
  },
  "luminance": 0.14263
}

Semantic roles & 50–950 ramp

primary
#2B791A
secondary
#9A41AD
accent
#40E8CA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2B791A

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

Preview Lab → · Contrast checker → · Palette generator →

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