#2D8740#2D8740

#2D8740 is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.3% C 0.136 H 147.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#2D8740
RGBrgb(45, 135, 64)
HSLhsl(133, 50%, 35%)
HSVhsv(133, 67%, 53%)
CMYKcmyk(66.7%, 0%, 52.6%, 47.1%)
CIE-LABlab(49.80, -42.43, 30.35)
CIE-LCHlch(49.80, 52.17, 144.42°)
OKLaboklab(55.3% -0.1145 0.0733)
OKLCHoklch(55.3% 0.136 147.4)
XYZxyz(10.6708, 18.2549, 7.8107)
Luminance0.1826 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8740 #872D74
analogous
#47872D #2D8740 #2D876D
triadic
#2D8740 #402D87 #87402D
tetradic
#2D8740 #2D4787 #872D74 #876D2D
square
#2D8740 #2D4787 #872D74 #876D2D
split-complementary
#2D8740 #6D2D87 #872D47
monochromatic
#0E2B14 #1E592A #2D8740 #3CB556 #63CB79

Accessibility & contrast

On white

4.51
#2D8740 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#2D8740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D8740
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8740#FFFFFF#000000##000000
##2D87401.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897B3A
Deuteranopia (green-blind)
#7D7345
Tritanopia (blue-blind)
#108477
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2d8740;
/* rgb */ color: rgb(45, 135, 64);
/* oklch */ color: oklch(55.3% 0.136 147.4);
Tailwind
colors: {
  custom: {
    50: '#71ab76',
    500: '#2d8740',
    950: '#000000',
  },
}
SCSS
$custom: #2d8740;
$custom-light: #71ab76;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8740",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 64
  },
  "hsl": {
    "h": 132.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55299,
    "c": 0.13597,
    "h": 147.4
  },
  "luminance": 0.18256
}

Semantic roles & 50–950 ramp

primary
#2D8740
secondary
#B25EA0
accent
#4EBCDA
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #2D8740

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

Preview Lab → · Contrast checker → · Palette generator →

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