#2D7F2A#2D7F2A

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

Color values

HEX#2D7F2A
RGBrgb(45, 127, 42)
HSLhsl(118, 50%, 33%)
HSVhsv(118, 67%, 50%)
CMYKcmyk(64.6%, 0%, 66.9%, 50.2%)
CIE-LABlab(46.85, -42.25, 37.80)
CIE-LCHlch(46.85, 56.69, 138.18°)
OKLaboklab(52.77% -0.1149 0.0876)
OKLCHoklch(52.77% 0.145 142.7)
XYZxyz(9.0890, 15.9029, 4.7806)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F2A #7C2A7F
analogous
#577F2A #2D7F2A #2A7F51
triadic
#2D7F2A #2A2D7F #7F2A2D
tetradic
#2D7F2A #2A577F #7C2A7F #7F512A
square
#2D7F2A #2A577F #7C2A7F #7F512A
split-complementary
#2D7F2A #512A7F #7F2A57
monochromatic
#0C230C #1D511B #2D7F2A #3DAD39 #5FC95B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7F2A#FFFFFF#000000##FFFFFF
##2D7F2A1.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)
#82731F
Deuteranopia (green-blind)
#786C31
Tritanopia (blue-blind)
#1D7B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f2a;
/* rgb */ color: rgb(45, 127, 42);
/* oklch */ color: oklch(52.8% 0.144 142.7);
Tailwind
colors: {
  custom: {
    50: '#71a567',
    500: '#2d7f2a',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f2a;
$custom-light: #71a567;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f2a",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 117.882,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.52774,
    "c": 0.1445,
    "h": 142.7
  },
  "luminance": 0.15904
}

Semantic roles & 50–950 ramp

primary
#2D7F2A
secondary
#AB57AE
accent
#4EDAD5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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