#2D7F2F#2D7F2F

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

Color values

HEX#2D7F2F
RGBrgb(45, 127, 47)
HSLhsl(121, 48%, 34%)
HSVhsv(121, 65%, 50%)
CMYKcmyk(64.6%, 0%, 63%, 50.2%)
CIE-LABlab(46.90, -41.67, 35.50)
CIE-LCHlch(46.90, 54.74, 139.57°)
OKLaboklab(52.83% -0.1131 0.0833)
OKLCHoklch(52.83% 0.14 143.6)
XYZxyz(9.1841, 15.9410, 5.2817)
Luminance0.1594 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F2F #7F2D7D
analogous
#547F2D #2D7F2F #2D7F58
triadic
#2D7F2F #2F2D7F #7F2F2D
tetradic
#2D7F2F #2D547F #7F2D7D #7F582D
square
#2D7F2F #2D547F #7F2D7D #7F582D
split-complementary
#2D7F2F #582D7F #7F2D54
monochromatic
#0D250E #1D521E #2D7F2F #3DAC40 #60C762

Accessibility & contrast

On white

5.01
#2D7F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2D7F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F2F
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F2F#FFFFFF#000000##FFFFFF
##2D7F2F1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827326
Deuteranopia (green-blind)
#776C36
Tritanopia (blue-blind)
#1C7B6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f2f;
/* rgb */ color: rgb(45, 127, 47);
/* oklch */ color: oklch(52.8% 0.140 143.6);
Tailwind
colors: {
  custom: {
    50: '#70a56b',
    500: '#2d7f2f',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f2f;
$custom-light: #70a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f2f",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 121.463,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.52832,
    "c": 0.14043,
    "h": 143.6
  },
  "luminance": 0.15942
}

Semantic roles & 50–950 ramp

primary
#2D7F2F
secondary
#AD5BAB
accent
#51D4D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2D7F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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