#2D791C#2D791C

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

Color values

HEX#2D791C
RGBrgb(45, 121, 28)
HSLhsl(109, 62%, 29%)
HSVhsv(109, 77%, 47%)
CMYKcmyk(62.8%, 0%, 76.9%, 52.5%)
CIE-LABlab(44.68, -41.27, 41.44)
CIE-LCHlch(44.68, 58.48, 134.88°)
OKLaboklab(50.95% -0.1131 0.0934)
OKLCHoklch(50.95% 0.147 140.4)
XYZxyz(8.1288, 14.3157, 3.4332)
Luminance0.1432 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D791C #681C79
analogous
#5C791C #2D791C #1C793A
triadic
#2D791C #1C2D79 #791C2D
tetradic
#2D791C #1C5C79 #681C79 #793A1C
square
#2D791C #1C5C79 #681C79 #793A1C
split-complementary
#2D791C #3A1C79 #791C5C
monochromatic
#091906 #1B4710 #2D791C #3FAB28 #58D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D791C#FFFFFF#000000##FFFFFF
##2D791C1.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)
#7C6E0A
Deuteranopia (green-blind)
#736726
Tritanopia (blue-blind)
#227567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d791c;
/* rgb */ color: rgb(45, 121, 28);
/* oklch */ color: oklch(50.9% 0.147 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a05f',
    500: '#2d791c',
    950: '#000000',
  },
}
SCSS
$custom: #2d791c;
$custom-light: #70a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d791c",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 109.032,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50949,
    "c": 0.14669,
    "h": 140.4
  },
  "luminance": 0.14316
}

Semantic roles & 50–950 ramp

primary
#2D791C
secondary
#9A44AD
accent
#42E5C8
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2D791C

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

Preview Lab → · Contrast checker → · Palette generator →

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