#2F791B#2F791B

#2F791B is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.146 H 139.9°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#2F791B
RGBrgb(47, 121, 27)
HSLhsl(107, 64%, 29%)
HSVhsv(107, 78%, 47%)
CMYKcmyk(61.2%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.74, -40.82, 41.90)
CIE-LCHlch(44.74, 58.49, 134.25°)
OKLaboklab(51.01% -0.1121 0.0942)
OKLCHoklch(51.01% 0.146 139.9)
XYZxyz(8.2071, 14.3575, 3.3755)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F791B #651B79
analogous
#5E791B #2F791B #1B7936
triadic
#2F791B #1B2F79 #791B2F
tetradic
#2F791B #1B5E79 #651B79 #79361B
square
#2F791B #1B5E79 #651B79 #79361B
split-complementary
#2F791B #361B79 #791B5E
monochromatic
#0A1906 #1C4710 #2F791B #42AB26 #5BD33B

Accessibility & contrast

On white

5.42
#2F791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2F791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F791B
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F791B#FFFFFF#000000##FFFFFF
##2F791B1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#736825
Tritanopia (blue-blind)
#267567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f791b;
/* rgb */ color: rgb(47, 121, 27);
/* oklch */ color: oklch(51.0% 0.146 139.9);
Tailwind
colors: {
  custom: {
    50: '#71a05f',
    500: '#2f791b',
    950: '#000000',
  },
}
SCSS
$custom: #2f791b;
$custom-light: #71a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f791b",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 107.234,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51014,
    "c": 0.14641,
    "h": 139.9
  },
  "luminance": 0.14358
}

Semantic roles & 50–950 ramp

primary
#2F791B
secondary
#9743AD
accent
#41E7C3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F791B

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

Preview Lab → · Contrast checker → · Palette generator →

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