#2D7C1F#2D7C1F

#2D7C1F is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.149 H 140.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2D7C1F
RGBrgb(45, 124, 31)
HSLhsl(111, 60%, 30%)
HSVhsv(111, 75%, 49%)
CMYKcmyk(63.7%, 0%, 75%, 51.4%)
CIE-LABlab(45.73, -42.17, 41.33)
CIE-LCHlch(45.73, 59.05, 135.57°)
OKLaboklab(51.82% -0.1153 0.0936)
OKLCHoklch(51.82% 0.149 140.9)
XYZxyz(8.5367, 15.0713, 3.7552)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7C1F #6E1F7C
analogous
#5B7C1F #2D7C1F #1F7C40
triadic
#2D7C1F #1F2D7C #7C1F2D
tetradic
#2D7C1F #1F5B7C #6E1F7C #7C401F
square
#2D7C1F #1F5B7C #6E1F7C #7C401F
split-complementary
#2D7C1F #401F7C #7C1F5B
monochromatic
#091A07 #1B4B13 #2D7C1F #3FAD2B #5AD045

Accessibility & contrast

On white

5.23
#2D7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2D7C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7C1F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7C1F#FFFFFF#000000##FFFFFF
##2D7C1F1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#21786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7c1f;
/* rgb */ color: rgb(45, 124, 31);
/* oklch */ color: oklch(51.8% 0.149 140.9);
Tailwind
colors: {
  custom: {
    50: '#71a361',
    500: '#2d7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #2d7c1f;
$custom-light: #71a361;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7c1f",
  "rgb": {
    "r": 45,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 110.968,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51823,
    "c": 0.14856,
    "h": 140.9
  },
  "luminance": 0.15072
}

Semantic roles & 50–950 ramp

primary
#2D7C1F
secondary
#A048AF
accent
#45E3CB
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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