#2D791A#2D791A

#2D791A is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.148 H 140.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#2D791A
RGBrgb(45, 121, 26)
HSLhsl(108, 65%, 29%)
HSVhsv(108, 79%, 47%)
CMYKcmyk(62.8%, 0%, 78.5%, 52.5%)
CIE-LABlab(44.67, -41.42, 42.17)
CIE-LCHlch(44.67, 59.11, 134.49°)
OKLaboklab(50.93% -0.1136 0.0947)
OKLCHoklch(50.93% 0.148 140.2)
XYZxyz(8.1056, 14.3065, 3.3114)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D791A #661A79
analogous
#5D791A #2D791A #1A7937
triadic
#2D791A #1A2D79 #791A2D
tetradic
#2D791A #1A5D79 #661A79 #79371A
square
#2D791A #1A5D79 #661A79 #79371A
split-complementary
#2D791A #371A79 #791A5D
monochromatic
#091905 #1A470F #2D791A #40AB25 #58D439

Accessibility & contrast

On white

5.44
#2D791A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2D791A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D791A
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D791A#FFFFFF#000000##FFFFFF
##2D791A1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D05
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#237567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d791a;
/* rgb */ color: rgb(45, 121, 26);
/* oklch */ color: oklch(50.9% 0.148 140.2);
Tailwind
colors: {
  custom: {
    50: '#70a05e',
    500: '#2d791a',
    950: '#000000',
  },
}
SCSS
$custom: #2d791a;
$custom-light: #70a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d791a",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 108,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50934,
    "c": 0.14789,
    "h": 140.2
  },
  "luminance": 0.14307
}

Semantic roles & 50–950 ramp

primary
#2D791A
secondary
#9841AD
accent
#40E8C6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2D791A

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

Preview Lab → · Contrast checker → · Palette generator →

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