#2B791B#2B791B

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

Color values

HEX#2B791B
RGBrgb(43, 121, 27)
HSLhsl(110, 64%, 29%)
HSVhsv(110, 78%, 47%)
CMYKcmyk(64.5%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.61, -41.86, 41.73)
CIE-LCHlch(44.61, 59.10, 135.09°)
OKLaboklab(50.87% -0.1146 0.0939)
OKLCHoklch(50.87% 0.148 140.7)
XYZxyz(8.0311, 14.2667, 3.3672)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B791B #691B79
analogous
#5A791B #2B791B #1B793A
triadic
#2B791B #1B2B79 #791B2B
tetradic
#2B791B #1B5A79 #691B79 #793A1B
square
#2B791B #1B5A79 #691B79 #793A1B
split-complementary
#2B791B #3A1B79 #791B5A
monochromatic
#091906 #194710 #2B791B #3DAB26 #55D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B791B#FFFFFF#000000##FFFFFF
##2B791B1.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)
#7C6D07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#1F7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2b791b;
/* rgb */ color: rgb(43, 121, 27);
/* oklch */ color: oklch(50.9% 0.148 140.7);
Tailwind
colors: {
  custom: {
    50: '#6fa05f',
    500: '#2b791b',
    950: '#000000',
  },
}
SCSS
$custom: #2b791b;
$custom-light: #6fa05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b791b",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 109.787,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50872,
    "c": 0.14816,
    "h": 140.7
  },
  "luminance": 0.14267
}

Semantic roles & 50–950 ramp

primary
#2B791B
secondary
#9B43AD
accent
#41E7CA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2B791B

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

Preview Lab → · Contrast checker → · Palette generator →

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