#2F791C#2F791C

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

Color values

HEX#2F791C
RGBrgb(47, 121, 28)
HSLhsl(108, 62%, 29%)
HSVhsv(108, 77%, 47%)
CMYKcmyk(61.2%, 0%, 76.9%, 52.5%)
CIE-LABlab(44.75, -40.74, 41.53)
CIE-LCHlch(44.75, 58.18, 134.45°)
OKLaboklab(51.02% -0.1118 0.0936)
OKLCHoklch(51.02% 0.146 140.1)
XYZxyz(8.2189, 14.3622, 3.4374)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F791C #661C79
analogous
#5E791C #2F791C #1C7938
triadic
#2F791C #1C2F79 #791C2F
tetradic
#2F791C #1C5E79 #661C79 #79381C
square
#2F791C #1C5E79 #661C79 #79381C
split-complementary
#2F791C #381C79 #791C5E
monochromatic
#0A1906 #1C4710 #2F791C #42AB28 #5CD23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F791C#FFFFFF#000000##FFFFFF
##2F791C1.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)
#7C6E0A
Deuteranopia (green-blind)
#736826
Tritanopia (blue-blind)
#267567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2f791c;
/* rgb */ color: rgb(47, 121, 28);
/* oklch */ color: oklch(51.0% 0.146 140.1);
Tailwind
colors: {
  custom: {
    50: '#71a05f',
    500: '#2f791c',
    950: '#000000',
  },
}
SCSS
$custom: #2f791c;
$custom-light: #71a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f791c",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 107.742,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51022,
    "c": 0.1458,
    "h": 140.1
  },
  "luminance": 0.14363
}

Semantic roles & 50–950 ramp

primary
#2F791C
secondary
#9844AD
accent
#42E5C4
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2F791C

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

Preview Lab → · Contrast checker → · Palette generator →

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