#2D7D28#2D7D28

#2D7D28 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.143 H 142.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2D7D28
RGBrgb(45, 125, 40)
HSLhsl(116, 52%, 32%)
HSVhsv(116, 68%, 49%)
CMYKcmyk(64%, 0%, 68%, 51%)
CIE-LABlab(46.15, -41.69, 37.94)
CIE-LCHlch(46.15, 56.37, 137.70°)
OKLaboklab(52.19% -0.1135 0.0877)
OKLCHoklch(52.19% 0.143 142.3)
XYZxyz(8.7983, 15.3775, 4.5116)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D28 #78287D
analogous
#577D28 #2D7D28 #287D4E
triadic
#2D7D28 #282D7D #7D282D
tetradic
#2D7D28 #28577D #78287D #7D4E28
square
#2D7D28 #28577D #78287D #7D4E28
split-complementary
#2D7D28 #4E287D #7D2857
monochromatic
#0C200A #1C4F19 #2D7D28 #3EAB37 #5DC956

Accessibility & contrast

On white

5.15
#2D7D28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#2D7D28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7D28
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7D28#FFFFFF#000000##FFFFFF
##2D7D281.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711D
Deuteranopia (green-blind)
#766B30
Tritanopia (blue-blind)
#1F796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7d28;
/* rgb */ color: rgb(45, 125, 40);
/* oklch */ color: oklch(52.2% 0.143 142.3);
Tailwind
colors: {
  custom: {
    50: '#70a366',
    500: '#2d7d28',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d28;
$custom-light: #70a366;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d28",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 116.471,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5219,
    "c": 0.14344,
    "h": 142.3
  },
  "luminance": 0.15378
}

Semantic roles & 50–950 ramp

primary
#2D7D28
secondary
#A953AE
accent
#4DDBD3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7D28

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

Preview Lab → · Contrast checker → · Palette generator →

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