#2D791F#2D791F

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

Color values

HEX#2D791F
RGBrgb(45, 121, 31)
HSLhsl(111, 59%, 30%)
HSVhsv(111, 74%, 47%)
CMYKcmyk(62.8%, 0%, 74.4%, 52.5%)
CIE-LABlab(44.70, -41.02, 40.28)
CIE-LCHlch(44.70, 57.49, 135.52°)
OKLaboklab(50.97% -0.1122 0.0914)
OKLCHoklch(50.97% 0.145 140.8)
XYZxyz(8.1665, 14.3308, 3.6318)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D791F #6B1F79
analogous
#5A791F #2D791F #1F793E
triadic
#2D791F #1F2D79 #791F2D
tetradic
#2D791F #1F5A79 #6B1F79 #793E1F
square
#2D791F #1F5A79 #6B1F79 #793E1F
split-complementary
#2D791F #3E1F79 #791F5A
monochromatic
#091806 #1B4813 #2D791F #3FAA2B #59CF43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D791F#FFFFFF#000000##FFFFFF
##2D791F1.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)
#7C6E10
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#227567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d791f;
/* rgb */ color: rgb(45, 121, 31);
/* oklch */ color: oklch(51.0% 0.145 140.8);
Tailwind
colors: {
  custom: {
    50: '#70a061',
    500: '#2d791f',
    950: '#000000',
  },
}
SCSS
$custom: #2d791f;
$custom-light: #70a061;
$custom-dark: #000000;
JSON
{
  "hex": "#2d791f",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 110.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50973,
    "c": 0.14477,
    "h": 140.8
  },
  "luminance": 0.14332
}

Semantic roles & 50–950 ramp

primary
#2D791F
secondary
#9D47AC
accent
#45E2CA
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2D791F

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

Preview Lab → · Contrast checker → · Palette generator →

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