#2D7F2B#2D7F2B

#2D7F2B is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.144 H 142.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2D7F2B
RGBrgb(45, 127, 43)
HSLhsl(119, 49%, 33%)
HSVhsv(119, 66%, 50%)
CMYKcmyk(64.6%, 0%, 66.1%, 50.2%)
CIE-LABlab(46.86, -42.14, 37.35)
CIE-LCHlch(46.86, 56.31, 138.45°)
OKLaboklab(52.79% -0.1146 0.0868)
OKLCHoklch(52.79% 0.144 142.9)
XYZxyz(9.1071, 15.9102, 4.8761)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F2B #7D2B7F
analogous
#577F2B #2D7F2B #2B7F53
triadic
#2D7F2B #2B2D7F #7F2B2D
tetradic
#2D7F2B #2B577F #7D2B7F #7F532B
square
#2D7F2B #2B577F #7D2B7F #7F532B
split-complementary
#2D7F2B #532B7F #7F2B57
monochromatic
#0D240C #1D511C #2D7F2B #3DAD3A #5FC85C

Accessibility & contrast

On white

5.02
#2D7F2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2D7F2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F2B
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F2B#FFFFFF#000000##FFFFFF
##2D7F2B1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827321
Deuteranopia (green-blind)
#786C32
Tritanopia (blue-blind)
#1D7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f2b;
/* rgb */ color: rgb(45, 127, 43);
/* oklch */ color: oklch(52.8% 0.144 142.9);
Tailwind
colors: {
  custom: {
    50: '#71a568',
    500: '#2d7f2b',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f2b;
$custom-light: #71a568;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f2b",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 118.571,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52785,
    "c": 0.14372,
    "h": 142.9
  },
  "luminance": 0.15911
}

Semantic roles & 50–950 ramp

primary
#2D7F2B
secondary
#AC58AE
accent
#4FD9D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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