#2D7E1B#2D7E1B

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

Color values

HEX#2D7E1B
RGBrgb(45, 126, 27)
HSLhsl(109, 65%, 30%)
HSVhsv(109, 79%, 49%)
CMYKcmyk(64.3%, 0%, 78.6%, 50.6%)
CIE-LABlab(46.39, -43.23, 43.50)
CIE-LCHlch(46.39, 61.33, 134.82°)
OKLaboklab(52.36% -0.1184 0.0976)
OKLCHoklch(52.36% 0.153 140.5)
XYZxyz(8.7405, 15.5579, 3.5791)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E1B #6C1B7E
analogous
#5E7E1B #2D7E1B #1B7E3B
triadic
#2D7E1B #1B2D7E #7E1B2D
tetradic
#2D7E1B #1B5E7E #6C1B7E #7E3B1B
square
#2D7E1B #1B5E7E #6C1B7E #7E3B1B
split-complementary
#2D7E1B #3B1B7E #7E1B5E
monochromatic
#091905 #1B4C10 #2D7E1B #3FB026 #59D63E

Accessibility & contrast

On white

5.11
#2D7E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2D7E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7E1B
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7E1B#FFFFFF#000000##FFFFFF
##2D7E1B1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817205
Deuteranopia (green-blind)
#786B26
Tritanopia (blue-blind)
#217A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7e1b;
/* rgb */ color: rgb(45, 126, 27);
/* oklch */ color: oklch(52.4% 0.153 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a45f',
    500: '#2d7e1b',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e1b;
$custom-light: #71a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e1b",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 109.091,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.52358,
    "c": 0.15347,
    "h": 140.5
  },
  "luminance": 0.15559
}

Semantic roles & 50–950 ramp

primary
#2D7E1B
secondary
#9E43B2
accent
#40E8C9
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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