#2F791A#2F791A

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

Color values

HEX#2F791A
RGBrgb(47, 121, 26)
HSLhsl(107, 65%, 29%)
HSVhsv(107, 79%, 47%)
CMYKcmyk(61.2%, 0%, 78.5%, 52.5%)
CIE-LABlab(44.73, -40.89, 42.26)
CIE-LCHlch(44.73, 58.81, 134.06°)
OKLaboklab(51.01% -0.1123 0.0948)
OKLCHoklch(51.01% 0.147 139.8)
XYZxyz(8.1958, 14.3529, 3.3156)
Luminance0.1435 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F791A #641A79
analogous
#5F791A #2F791A #1A7935
triadic
#2F791A #1A2F79 #791A2F
tetradic
#2F791A #1A5F79 #641A79 #79351A
square
#2F791A #1A5F79 #641A79 #79351A
split-complementary
#2F791A #351A79 #791A5F
monochromatic
#0A1905 #1B470F #2F791A #43AB25 #5BD439

Accessibility & contrast

On white

5.43
#2F791A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F791A
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F791A#FFFFFF#000000##FFFFFF
##2F791A1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f791a;
/* rgb */ color: rgb(47, 121, 26);
/* oklch */ color: oklch(51.0% 0.147 139.8);
Tailwind
colors: {
  custom: {
    50: '#71a05e',
    500: '#2f791a',
    950: '#000000',
  },
}
SCSS
$custom: #2f791a;
$custom-light: #71a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f791a",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 106.737,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51007,
    "c": 0.147,
    "h": 139.8
  },
  "luminance": 0.14354
}

Semantic roles & 50–950 ramp

primary
#2F791A
secondary
#9641AD
accent
#40E8C3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F791A

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

Preview Lab → · Contrast checker → · Palette generator →

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