#2F791D#2F791D

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

Color values

HEX#2F791D
RGBrgb(47, 121, 29)
HSLhsl(108, 61%, 29%)
HSVhsv(108, 76%, 47%)
CMYKcmyk(61.2%, 0%, 76%, 52.5%)
CIE-LABlab(44.75, -40.66, 41.15)
CIE-LCHlch(44.75, 57.85, 134.66°)
OKLaboklab(51.03% -0.1115 0.0929)
OKLCHoklch(51.03% 0.145 140.2)
XYZxyz(8.2311, 14.3671, 3.5015)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F791D #671D79
analogous
#5D791D #2F791D #1D7939
triadic
#2F791D #1D2F79 #791D2F
tetradic
#2F791D #1D5D79 #671D79 #79391D
square
#2F791D #1D5D79 #671D79 #79391D
split-complementary
#2F791D #391D79 #791D5D
monochromatic
#0A1906 #1C4811 #2F791D #42AA29 #5CD13F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F791D#FFFFFF#000000##FFFFFF
##2F791D1.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)
#7C6E0C
Deuteranopia (green-blind)
#736826
Tritanopia (blue-blind)
#257567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f791d;
/* rgb */ color: rgb(47, 121, 29);
/* oklch */ color: oklch(51.0% 0.145 140.2);
Tailwind
colors: {
  custom: {
    50: '#71a060',
    500: '#2f791d',
    950: '#000000',
  },
}
SCSS
$custom: #2f791d;
$custom-light: #71a060;
$custom-dark: #000000;
JSON
{
  "hex": "#2f791d",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 29
  },
  "hsl": {
    "h": 108.261,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51029,
    "c": 0.14518,
    "h": 140.2
  },
  "luminance": 0.14368
}

Semantic roles & 50–950 ramp

primary
#2F791D
secondary
#9845AD
accent
#43E4C5
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F791D

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

Preview Lab → · Contrast checker → · Palette generator →

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