#2D792B#2D792B

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

Color values

HEX#2D792B
RGBrgb(45, 121, 43)
HSLhsl(118, 48%, 32%)
HSVhsv(118, 64%, 47%)
CMYKcmyk(62.8%, 0%, 64.5%, 52.5%)
CIE-LABlab(44.81, -39.79, 35.06)
CIE-LCHlch(44.81, 53.04, 138.62°)
OKLaboklab(51.1% -0.1082 0.0819)
OKLCHoklch(51.1% 0.136 142.9)
XYZxyz(8.3551, 14.4063, 4.6254)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D792B #772B79
analogous
#54792B #2D792B #2B7950
triadic
#2D792B #2B2D79 #792B2D
tetradic
#2D792B #2B5479 #772B79 #79502B
square
#2D792B #2B5479 #772B79 #79502B
split-complementary
#2D792B #502B79 #792B54
monochromatic
#0B1F0B #1C4C1B #2D792B #3EA63B #5DC45A

Accessibility & contrast

On white

5.41
#2D792B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#2D792B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D792B
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D792B#FFFFFF#000000##FFFFFF
##2D792B1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E22
Deuteranopia (green-blind)
#726832
Tritanopia (blue-blind)
#1F7568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d792b;
/* rgb */ color: rgb(45, 121, 43);
/* oklch */ color: oklch(51.1% 0.136 142.9);
Tailwind
colors: {
  custom: {
    50: '#6fa068',
    500: '#2d792b',
    950: '#000000',
  },
}
SCSS
$custom: #2d792b;
$custom-light: #6fa068;
$custom-dark: #000000;
JSON
{
  "hex": "#2d792b",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 43
  },
  "hsl": {
    "h": 118.462,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51095,
    "c": 0.13571,
    "h": 142.9
  },
  "luminance": 0.14407
}

Semantic roles & 50–950 ramp

primary
#2D792B
secondary
#A856AA
accent
#51D7D4
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2D792B

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

Preview Lab → · Contrast checker → · Palette generator →

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