#2D8540#2D8540

#2D8540 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.133 H 147.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2D8540
RGBrgb(45, 133, 64)
HSLhsl(133, 49%, 35%)
HSVhsv(133, 66%, 52%)
CMYKcmyk(66.2%, 0%, 51.9%, 47.8%)
CIE-LABlab(49.13, -41.64, 29.53)
CIE-LCHlch(49.13, 51.04, 144.66°)
OKLaboklab(54.75% -0.1124 0.0715)
OKLCHoklch(54.75% 0.133 147.6)
XYZxyz(10.3944, 17.7021, 7.7185)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8540 #852D72
analogous
#46852D #2D8540 #2D856C
triadic
#2D8540 #402D85 #85402D
tetradic
#2D8540 #2D4685 #852D72 #856C2D
square
#2D8540 #2D4685 #852D72 #856C2D
split-complementary
#2D8540 #6C2D85 #852D46
monochromatic
#0E2A14 #1E572A #2D8540 #3CB356 #62CA79

Accessibility & contrast

On white

4.62
#2D8540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#2D8540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8540
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8540#FFFFFF#000000##FFFFFF
##2D85401.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87793A
Deuteranopia (green-blind)
#7C7245
Tritanopia (blue-blind)
#118275
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2d8540;
/* rgb */ color: rgb(45, 133, 64);
/* oklch */ color: oklch(54.7% 0.133 147.6);
Tailwind
colors: {
  custom: {
    50: '#71a976',
    500: '#2d8540',
    950: '#000000',
  },
}
SCSS
$custom: #2d8540;
$custom-light: #71a976;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8540",
  "rgb": {
    "r": 45,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 132.955,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.54745,
    "c": 0.13319,
    "h": 147.6
  },
  "luminance": 0.17703
}

Semantic roles & 50–950 ramp

primary
#2D8540
secondary
#B05D9F
accent
#4FBBD9
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #2D8540

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

Preview Lab → · Contrast checker → · Palette generator →

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