#2D8126#2D8126

#2D8126 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.3% C 0.150 H 142.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2D8126
RGBrgb(45, 129, 38)
HSLhsl(115, 54%, 33%)
HSVhsv(115, 71%, 51%)
CMYKcmyk(65.1%, 0%, 70.5%, 49.4%)
CIE-LABlab(47.49, -43.42, 40.27)
CIE-LCHlch(47.49, 59.22, 137.15°)
OKLaboklab(53.3% -0.1183 0.0924)
OKLCHoklch(53.3% 0.15 142)
XYZxyz(9.2818, 16.3974, 4.5092)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8126 #7A2681
analogous
#5A8126 #2D8126 #26814D
triadic
#2D8126 #262D81 #81262D
tetradic
#2D8126 #265A81 #7A2681 #814D26
square
#2D8126 #265A81 #7A2681 #814D26
split-complementary
#2D8126 #4D2681 #81265A
monochromatic
#0C220A #1D5218 #2D8126 #3DB034 #5ECD55

Accessibility & contrast

On white

4.91
#2D8126 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#2D8126 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8126
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8126#FFFFFF#000000##FFFFFF
##2D81261.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847519
Deuteranopia (green-blind)
#7A6E2F
Tritanopia (blue-blind)
#1E7D6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2d8126;
/* rgb */ color: rgb(45, 129, 38);
/* oklch */ color: oklch(53.3% 0.150 142.0);
Tailwind
colors: {
  custom: {
    50: '#71a665',
    500: '#2d8126',
    950: '#000000',
  },
}
SCSS
$custom: #2d8126;
$custom-light: #71a665;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8126",
  "rgb": {
    "r": 45,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 115.385,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53296,
    "c": 0.1501,
    "h": 142
  },
  "luminance": 0.16398
}

Semantic roles & 50–950 ramp

primary
#2D8126
secondary
#AA51B1
accent
#4ADED2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #2D8126

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

Preview Lab → · Contrast checker → · Palette generator →

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