#2D791B#2D791B

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

Color values

HEX#2D791B
RGBrgb(45, 121, 27)
HSLhsl(109, 64%, 29%)
HSVhsv(109, 78%, 47%)
CMYKcmyk(62.8%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.68, -41.35, 41.81)
CIE-LCHlch(44.68, 58.80, 134.68°)
OKLaboklab(50.94% -0.1134 0.0941)
OKLCHoklch(50.94% 0.147 140.3)
XYZxyz(8.1170, 14.3110, 3.3712)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D791B #671B79
analogous
#5C791B #2D791B #1B7938
triadic
#2D791B #1B2D79 #791B2D
tetradic
#2D791B #1B5C79 #671B79 #79381B
square
#2D791B #1B5C79 #671B79 #79381B
split-complementary
#2D791B #381B79 #791B5C
monochromatic
#091906 #1A4710 #2D791B #40AB26 #58D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D791B#FFFFFF#000000##FFFFFF
##2D791B1.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)
#7C6E07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#227567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d791b;
/* rgb */ color: rgb(45, 121, 27);
/* oklch */ color: oklch(50.9% 0.147 140.3);
Tailwind
colors: {
  custom: {
    50: '#70a05f',
    500: '#2d791b',
    950: '#000000',
  },
}
SCSS
$custom: #2d791b;
$custom-light: #70a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d791b",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 108.511,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50941,
    "c": 0.1473,
    "h": 140.3
  },
  "luminance": 0.14312
}

Semantic roles & 50–950 ramp

primary
#2D791B
secondary
#9943AD
accent
#41E7C7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2D791B

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

Preview Lab → · Contrast checker → · Palette generator →

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