#2D7A1B#2D7A1B

#2D7A1B is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.149 H 140.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2D7A1B
RGBrgb(45, 122, 27)
HSLhsl(109, 64%, 29%)
HSVhsv(109, 78%, 48%)
CMYKcmyk(63.1%, 0%, 77.9%, 52.2%)
CIE-LABlab(45.02, -41.73, 42.15)
CIE-LCHlch(45.02, 59.31, 134.71°)
OKLaboklab(51.23% -0.1144 0.0948)
OKLCHoklch(51.23% 0.149 140.4)
XYZxyz(8.2392, 14.5553, 3.4120)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7A1B #681B7A
analogous
#5D7A1B #2D7A1B #1B7A39
triadic
#2D7A1B #1B2D7A #7A1B2D
tetradic
#2D7A1B #1B5D7A #681B7A #7A391B
square
#2D7A1B #1B5D7A #681B7A #7A391B
split-complementary
#2D7A1B #391B7A #7A1B5D
monochromatic
#091906 #1B4810 #2D7A1B #3FAC26 #58D43C

Accessibility & contrast

On white

5.37
#2D7A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2D7A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7A1B
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7A1B#FFFFFF#000000##FFFFFF
##2D7A1B1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#227668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d7a1b;
/* rgb */ color: rgb(45, 122, 27);
/* oklch */ color: oklch(51.2% 0.149 140.4);
Tailwind
colors: {
  custom: {
    50: '#70a15f',
    500: '#2d7a1b',
    950: '#000000',
  },
}
SCSS
$custom: #2d7a1b;
$custom-light: #70a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7a1b",
  "rgb": {
    "r": 45,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 108.632,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51225,
    "c": 0.14854,
    "h": 140.4
  },
  "luminance": 0.14556
}

Semantic roles & 50–950 ramp

primary
#2D7A1B
secondary
#9A43AE
accent
#41E7C7
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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