#2D7F45#2D7F45

#2D7F45 is a mid, moderate green. Relative luminance 0.162; OKLCH L 53.2% C 0.120 H 149.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#2D7F45
RGBrgb(45, 127, 69)
HSLhsl(138, 48%, 34%)
HSVhsv(138, 65%, 50%)
CMYKcmyk(64.6%, 0%, 45.7%, 50.2%)
CIE-LABlab(47.19, -38.35, 24.37)
CIE-LCHlch(47.19, 45.44, 147.57°)
OKLaboklab(53.17% -0.1036 0.06)
OKLCHoklch(53.17% 0.12 149.9)
XYZxyz(9.7450, 16.1653, 8.2357)
Luminance0.1617 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F45 #7F2D67
analogous
#3E7F2D #2D7F45 #2D7F6E
triadic
#2D7F45 #452D7F #7F452D
tetradic
#2D7F45 #2D3E7F #7F2D67 #7F6E2D
square
#2D7F45 #2D3E7F #7F2D67 #7F6E2D
split-complementary
#2D7F45 #6E2D7F #7F2D3E
monochromatic
#0D2514 #1D522C #2D7F45 #3DAC5E #60C77E

Accessibility & contrast

On white

4.96
#2D7F45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2D7F45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F45
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F45#FFFFFF#000000##FFFFFF
##2D7F451.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807441
Deuteranopia (green-blind)
#756D49
Tritanopia (blue-blind)
#127D71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2d7f45;
/* rgb */ color: rgb(45, 127, 69);
/* oklch */ color: oklch(53.2% 0.120 149.9);
Tailwind
colors: {
  custom: {
    50: '#6fa579',
    500: '#2d7f45',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f45;
$custom-light: #6fa579;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f45",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 69
  },
  "hsl": {
    "h": 137.561,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5317,
    "c": 0.11968,
    "h": 149.9
  },
  "luminance": 0.16166
}

Semantic roles & 50–950 ramp

primary
#2D7F45
secondary
#AD5B95
accent
#51B0D7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2D7F45

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

Preview Lab → · Contrast checker → · Palette generator →

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