#2B791C#2B791C

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

Color values

HEX#2B791C
RGBrgb(43, 121, 28)
HSLhsl(110, 62%, 29%)
HSVhsv(110, 77%, 47%)
CMYKcmyk(64.5%, 0%, 76.9%, 52.5%)
CIE-LABlab(44.62, -41.78, 41.36)
CIE-LCHlch(44.62, 58.79, 135.29°)
OKLaboklab(50.88% -0.1143 0.0933)
OKLCHoklch(50.88% 0.148 140.8)
XYZxyz(8.0428, 14.2714, 3.4292)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B791C #6A1C79
analogous
#5A791C #2B791C #1C793C
triadic
#2B791C #1C2B79 #791C2B
tetradic
#2B791C #1C5A79 #6A1C79 #793C1C
square
#2B791C #1C5A79 #6A1C79 #793C1C
split-complementary
#2B791C #3C1C79 #791C5A
monochromatic
#091906 #194710 #2B791C #3DAB28 #55D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B791C#FFFFFF#000000##FFFFFF
##2B791C1.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)
#7C6D0A
Deuteranopia (green-blind)
#736726
Tritanopia (blue-blind)
#1F7567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2b791c;
/* rgb */ color: rgb(43, 121, 28);
/* oklch */ color: oklch(50.9% 0.148 140.8);
Tailwind
colors: {
  custom: {
    50: '#6fa05f',
    500: '#2b791c',
    950: '#000000',
  },
}
SCSS
$custom: #2b791c;
$custom-light: #6fa05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b791c",
  "rgb": {
    "r": 43,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 110.323,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50879,
    "c": 0.14756,
    "h": 140.8
  },
  "luminance": 0.14272
}

Semantic roles & 50–950 ramp

primary
#2B791C
secondary
#9C44AD
accent
#42E5CB
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2B791C

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

Preview Lab → · Contrast checker → · Palette generator →

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