#2D7F38#2D7F38

#2D7F38 is a mid, vivid green. Relative luminance 0.160; OKLCH L 53.0% C 0.132 H 145.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2D7F38
RGBrgb(45, 127, 56)
HSLhsl(128, 48%, 34%)
HSVhsv(128, 65%, 50%)
CMYKcmyk(64.6%, 0%, 55.9%, 50.2%)
CIE-LABlab(47.00, -40.46, 31.11)
CIE-LCHlch(47.00, 51.04, 142.44°)
OKLaboklab(52.95% -0.1094 0.0745)
OKLCHoklch(52.95% 0.132 145.8)
XYZxyz(9.3848, 16.0212, 6.3385)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F38 #7F2D74
analogous
#4B7F2D #2D7F38 #2D7F61
triadic
#2D7F38 #382D7F #7F382D
tetradic
#2D7F38 #2D4B7F #7F2D74 #7F612D
square
#2D7F38 #2D4B7F #7F2D74 #7F612D
split-complementary
#2D7F38 #612D7F #7F2D4B
monochromatic
#0D2510 #1D5224 #2D7F38 #3DAC4C #60C76E

Accessibility & contrast

On white

4.99
#2D7F38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#2D7F38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F38
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F38#FFFFFF#000000##FFFFFF
##2D7F381.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817431
Deuteranopia (green-blind)
#776D3D
Tritanopia (blue-blind)
#197C6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f38;
/* rgb */ color: rgb(45, 127, 56);
/* oklch */ color: oklch(53.0% 0.132 145.8);
Tailwind
colors: {
  custom: {
    50: '#70a570',
    500: '#2d7f38',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f38;
$custom-light: #70a570;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f38",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 56
  },
  "hsl": {
    "h": 128.049,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.52953,
    "c": 0.13238,
    "h": 145.8
  },
  "luminance": 0.16022
}

Semantic roles & 50–950 ramp

primary
#2D7F38
secondary
#AD5BA2
accent
#51C5D7
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2D7F38

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

Preview Lab → · Contrast checker → · Palette generator →

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