#2D7F1D#2D7F1D

#2D7F1D is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.154 H 140.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2D7F1D
RGBrgb(45, 127, 29)
HSLhsl(110, 63%, 31%)
HSVhsv(110, 77%, 50%)
CMYKcmyk(64.6%, 0%, 77.2%, 50.2%)
CIE-LABlab(46.74, -43.46, 43.12)
CIE-LCHlch(46.74, 61.22, 135.22°)
OKLaboklab(52.66% -0.1189 0.0971)
OKLCHoklch(52.66% 0.154 140.8)
XYZxyz(8.8929, 15.8245, 3.7479)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F1D #6F1D7F
analogous
#5E7F1D #2D7F1D #1D7F3E
triadic
#2D7F1D #1D2D7F #7F1D2D
tetradic
#2D7F1D #1D5E7F #6F1D7F #7F3E1D
square
#2D7F1D #1D5E7F #6F1D7F #7F3E1D
split-complementary
#2D7F1D #3E1D7F #7F1D5E
monochromatic
#0A1B06 #1B4D12 #2D7F1D #3FB128 #5AD442

Accessibility & contrast

On white

5.04
#2D7F1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2D7F1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7F1D
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7F1D#FFFFFF#000000##FFFFFF
##2D7F1D1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827309
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#207B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f1d;
/* rgb */ color: rgb(45, 127, 29);
/* oklch */ color: oklch(52.7% 0.154 140.8);
Tailwind
colors: {
  custom: {
    50: '#71a560',
    500: '#2d7f1d',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f1d;
$custom-light: #71a560;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f1d",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 110.204,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52656,
    "c": 0.15353,
    "h": 140.8
  },
  "luminance": 0.15825
}

Semantic roles & 50–950 ramp

primary
#2D7F1D
secondary
#A145B2
accent
#42E6CB
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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