#2D8728#2D8728

#2D8728 is a mid, vivid green. Relative luminance 0.180; OKLCH L 55.0% C 0.156 H 142.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#2D8728
RGBrgb(45, 135, 40)
HSLhsl(117, 54%, 34%)
HSVhsv(117, 70%, 53%)
CMYKcmyk(66.7%, 0%, 70.4%, 47.1%)
CIE-LABlab(49.54, -45.46, 41.60)
CIE-LCHlch(49.54, 61.62, 137.54°)
OKLaboklab(55% -0.1237 0.0954)
OKLCHoklch(55% 0.156 142.4)
XYZxyz(10.1286, 18.0380, 4.9550)
Luminance0.1804 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8728 #822887
analogous
#5D8728 #2D8728 #288753
triadic
#2D8728 #282D87 #87282D
tetradic
#2D8728 #285D87 #822887 #875328
square
#2D8728 #285D87 #822887 #875328
split-complementary
#2D8728 #532887 #87285D
monochromatic
#0E290C #1D581A #2D8728 #3DB636 #61CE5B

Accessibility & contrast

On white

4.56
#2D8728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#2D8728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D8728
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8728#FFFFFF#000000##000000
##2D87281.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1A
Deuteranopia (green-blind)
#7F7331
Tritanopia (blue-blind)
#1A8374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2d8728;
/* rgb */ color: rgb(45, 135, 40);
/* oklch */ color: oklch(55.0% 0.156 142.4);
Tailwind
colors: {
  custom: {
    50: '#72ab67',
    500: '#2d8728',
    950: '#000000',
  },
}
SCSS
$custom: #2d8728;
$custom-light: #72ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8728",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 116.842,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54998,
    "c": 0.15623,
    "h": 142.4
  },
  "luminance": 0.18039
}

Semantic roles & 50–950 ramp

primary
#2D8728
secondary
#AF57B4
accent
#4ADED6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2D8728

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

Preview Lab → · Contrast checker → · Palette generator →

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