#2F791F#2F791F

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

Color values

HEX#2F791F
RGBrgb(47, 121, 31)
HSLhsl(109, 59%, 30%)
HSVhsv(109, 74%, 47%)
CMYKcmyk(61.2%, 0%, 74.4%, 52.5%)
CIE-LABlab(44.77, -40.50, 40.37)
CIE-LCHlch(44.77, 57.18, 135.09°)
OKLaboklab(51.05% -0.1109 0.0916)
OKLCHoklch(51.05% 0.144 140.5)
XYZxyz(8.2566, 14.3773, 3.6360)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F791F #691F79
analogous
#5C791F #2F791F #1F793C
triadic
#2F791F #1F2F79 #791F2F
tetradic
#2F791F #1F5C79 #691F79 #793C1F
square
#2F791F #1F5C79 #691F79 #793C1F
split-complementary
#2F791F #3C1F79 #791F5C
monochromatic
#091806 #1C4813 #2F791F #42AA2B #5CCF43

Accessibility & contrast

On white

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

On black

3.88
#2F791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F791F#FFFFFF#000000##FFFFFF
##2F791F1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#736828
Tritanopia (blue-blind)
#257567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f791f;
/* rgb */ color: rgb(47, 121, 31);
/* oklch */ color: oklch(51.0% 0.144 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a061',
    500: '#2f791f',
    950: '#000000',
  },
}
SCSS
$custom: #2f791f;
$custom-light: #71a061;
$custom-dark: #000000;
JSON
{
  "hex": "#2f791f",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 109.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51046,
    "c": 0.14388,
    "h": 140.5
  },
  "luminance": 0.14378
}

Semantic roles & 50–950 ramp

primary
#2F791F
secondary
#9A47AC
accent
#45E2C6
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F791F

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

Preview Lab → · Contrast checker → · Palette generator →

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