#2D7D40#2D7D40

#2D7D40 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.122 H 148.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2D7D40
RGBrgb(45, 125, 64)
HSLhsl(134, 47%, 33%)
HSVhsv(134, 64%, 49%)
CMYKcmyk(64%, 0%, 48.8%, 51%)
CIE-LABlab(46.44, -38.39, 26.15)
CIE-LCHlch(46.44, 46.45, 145.74°)
OKLaboklab(52.52% -0.1037 0.0638)
OKLCHoklch(52.52% 0.122 148.4)
XYZxyz(9.3406, 15.5944, 7.3673)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D40 #7D2D6A
analogous
#427D2D #2D7D40 #2D7D68
triadic
#2D7D40 #402D7D #7D402D
tetradic
#2D7D40 #2D427D #7D2D6A #7D682D
square
#2D7D40 #2D427D #7D2D6A #7D682D
split-complementary
#2D7D40 #682D7D #7D2D42
monochromatic
#0D2312 #1D5029 #2D7D40 #3DAA57 #5FC577

Accessibility & contrast

On white

5.10
#2D7D40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2D7D40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7D40
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7D40#FFFFFF#000000##FFFFFF
##2D7D401.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723B
Deuteranopia (green-blind)
#746B44
Tritanopia (blue-blind)
#167B6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7d40;
/* rgb */ color: rgb(45, 125, 64);
/* oklch */ color: oklch(52.5% 0.122 148.4);
Tailwind
colors: {
  custom: {
    50: '#6fa376',
    500: '#2d7d40',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d40;
$custom-light: #6fa376;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d40",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 134.25,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52524,
    "c": 0.12178,
    "h": 148.4
  },
  "luminance": 0.15595
}

Semantic roles & 50–950 ramp

primary
#2D7D40
secondary
#AC5A98
accent
#51B7D7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2D7D40

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

Preview Lab → · Contrast checker → · Palette generator →

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