#2D7D1B#2D7D1B

#2D7D1B is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.152 H 140.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2D7D1B
RGBrgb(45, 125, 27)
HSLhsl(109, 64%, 30%)
HSVhsv(109, 78%, 49%)
CMYKcmyk(64%, 0%, 78.4%, 51%)
CIE-LABlab(46.05, -42.86, 43.16)
CIE-LCHlch(46.05, 60.83, 134.80°)
OKLaboklab(52.08% -0.1174 0.0969)
OKLCHoklch(52.08% 0.152 140.5)
XYZxyz(8.6132, 15.3034, 3.5367)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D1B #6B1B7D
analogous
#5E7D1B #2D7D1B #1B7D3A
triadic
#2D7D1B #1B2D7D #7D1B2D
tetradic
#2D7D1B #1B5E7D #6B1B7D #7D3A1B
square
#2D7D1B #1B5E7D #6B1B7D #7D3A1B
split-complementary
#2D7D1B #3A1B7D #7D1B5E
monochromatic
#091905 #1B4B10 #2D7D1B #3FAF26 #59D53D

Accessibility & contrast

On white

5.17
#2D7D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2D7D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7D1B
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7D1B#FFFFFF#000000##FFFFFF
##2D7D1B1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807105
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#21796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7d1b;
/* rgb */ color: rgb(45, 125, 27);
/* oklch */ color: oklch(52.1% 0.152 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a35f',
    500: '#2d7d1b',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d1b;
$custom-light: #71a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d1b",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 108.98,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52075,
    "c": 0.15224,
    "h": 140.5
  },
  "luminance": 0.15304
}

Semantic roles & 50–950 ramp

primary
#2D7D1B
secondary
#9D43B1
accent
#40E7C9
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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