#2D8940#2D8940

#2D8940 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.9% C 0.139 H 147.2°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2D8940
RGBrgb(45, 137, 64)
HSLhsl(132, 51%, 36%)
HSVhsv(132, 67%, 54%)
CMYKcmyk(67.2%, 0%, 53.3%, 46.3%)
CIE-LABlab(50.47, -43.21, 31.18)
CIE-LCHlch(50.47, 53.29, 144.19°)
OKLaboklab(55.85% -0.1166 0.0751)
OKLCHoklch(55.85% 0.139 147.2)
XYZxyz(10.9525, 18.8182, 7.9046)
Luminance0.1882 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8940 #892D76
analogous
#48892D #2D8940 #2D896E
triadic
#2D8940 #402D89 #89402D
tetradic
#2D8940 #2D4889 #892D76 #896E2D
square
#2D8940 #2D4889 #892D76 #896E2D
split-complementary
#2D8940 #6E2D89 #892D48
monochromatic
#0F2D15 #1E5B2A #2D8940 #3CB756 #64CC7A

Accessibility & contrast

On white

4.41
#2D8940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#2D8940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D8940
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8940#FFFFFF#000000##000000
##2D89401.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7D3A
Deuteranopia (green-blind)
#7F7545
Tritanopia (blue-blind)
#0E8678
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2d8940;
/* rgb */ color: rgb(45, 137, 64);
/* oklch */ color: oklch(55.9% 0.139 147.2);
Tailwind
colors: {
  custom: {
    50: '#72ac76',
    500: '#2d8940',
    950: '#000000',
  },
}
SCSS
$custom: #2d8940;
$custom-light: #72ac76;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8940",
  "rgb": {
    "r": 45,
    "g": 137,
    "b": 64
  },
  "hsl": {
    "h": 132.391,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.55852,
    "c": 0.13874,
    "h": 147.2
  },
  "luminance": 0.18819
}

Semantic roles & 50–950 ramp

primary
#2D8940
secondary
#B35FA1
accent
#4EBDDA
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #2D8940

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

Preview Lab → · Contrast checker → · Palette generator →

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