#2D792F#2D792F

#2D792F is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.1% C 0.132 H 143.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#2D792F
RGBrgb(45, 121, 47)
HSLhsl(122, 46%, 33%)
HSVhsv(122, 63%, 47%)
CMYKcmyk(62.8%, 0%, 61.2%, 52.5%)
CIE-LABlab(44.85, -39.30, 33.15)
CIE-LCHlch(44.85, 51.41, 139.85°)
OKLaboklab(51.15% -0.1067 0.0782)
OKLCHoklch(51.15% 0.132 143.8)
XYZxyz(8.4322, 14.4371, 5.0310)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D792F #792D77
analogous
#51792D #2D792F #2D7955
triadic
#2D792F #2F2D79 #792F2D
tetradic
#2D792F #2D5179 #792D77 #79552D
square
#2D792F #2D5179 #792D77 #79552D
split-complementary
#2D792F #552D79 #792D51
monochromatic
#0C200C #1C4C1E #2D792F #3EA640 #5DC360

Accessibility & contrast

On white

5.40
#2D792F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#2D792F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D792F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D792F#FFFFFF#000000##FFFFFF
##2D792F1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E27
Deuteranopia (green-blind)
#726835
Tritanopia (blue-blind)
#1E7669
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d792f;
/* rgb */ color: rgb(45, 121, 47);
/* oklch */ color: oklch(51.1% 0.132 143.8);
Tailwind
colors: {
  custom: {
    50: '#6fa06a',
    500: '#2d792f',
    950: '#000000',
  },
}
SCSS
$custom: #2d792f;
$custom-light: #6fa06a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d792f",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 47
  },
  "hsl": {
    "h": 121.579,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51145,
    "c": 0.13226,
    "h": 143.8
  },
  "luminance": 0.14438
}

Semantic roles & 50–950 ramp

primary
#2D792F
secondary
#A958A7
accent
#52D2D5
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2D792F

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

Preview Lab → · Contrast checker → · Palette generator →

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