#2B791F#2B791F

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

Color values

HEX#2B791F
RGBrgb(43, 121, 31)
HSLhsl(112, 59%, 30%)
HSVhsv(112, 74%, 47%)
CMYKcmyk(64.5%, 0%, 74.4%, 52.5%)
CIE-LABlab(44.64, -41.53, 40.20)
CIE-LCHlch(44.64, 57.80, 135.93°)
OKLaboklab(50.9% -0.1135 0.0913)
OKLCHoklch(50.9% 0.146 141.2)
XYZxyz(8.0805, 14.2865, 3.6278)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B791F #6D1F79
analogous
#58791F #2B791F #1F7940
triadic
#2B791F #1F2B79 #791F2B
tetradic
#2B791F #1F5879 #6D1F79 #79401F
square
#2B791F #1F5879 #6D1F79 #79401F
split-complementary
#2B791F #401F79 #791F58
monochromatic
#091806 #1A4813 #2B791F #3CAA2B #56CF43

Accessibility & contrast

On white

5.44
#2B791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2B791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B791F
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B791F#FFFFFF#000000##FFFFFF
##2B791F1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#1E7567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b791f;
/* rgb */ color: rgb(43, 121, 31);
/* oklch */ color: oklch(50.9% 0.146 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa061',
    500: '#2b791f',
    950: '#000000',
  },
}
SCSS
$custom: #2b791f;
$custom-light: #6fa061;
$custom-dark: #000000;
JSON
{
  "hex": "#2b791f",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 112,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50904,
    "c": 0.14564,
    "h": 141.2
  },
  "luminance": 0.14287
}

Semantic roles & 50–950 ramp

primary
#2B791F
secondary
#9F47AC
accent
#45E2CD
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2B791F

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

Preview Lab → · Contrast checker → · Palette generator →

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