#2D7A1F#2D7A1F

#2D7A1F is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.146 H 140.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2D7A1F
RGBrgb(45, 122, 31)
HSLhsl(111, 59%, 30%)
HSVhsv(111, 75%, 48%)
CMYKcmyk(63.1%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.05, -41.41, 40.63)
CIE-LCHlch(45.05, 58.01, 135.54°)
OKLaboklab(51.26% -0.1133 0.0922)
OKLCHoklch(51.26% 0.146 140.9)
XYZxyz(8.2886, 14.5751, 3.6725)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7A1F #6C1F7A
analogous
#5B7A1F #2D7A1F #1F7A3E
triadic
#2D7A1F #1F2D7A #7A1F2D
tetradic
#2D7A1F #1F5B7A #6C1F7A #7A3E1F
square
#2D7A1F #1F5B7A #6C1F7A #7A3E1F
split-complementary
#2D7A1F #3E1F7A #7A1F5B
monochromatic
#091806 #1B4913 #2D7A1F #3FAB2B #59CF44

Accessibility & contrast

On white

5.36
#2D7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2D7A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7A1F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7A1F#FFFFFF#000000##FFFFFF
##2D7A1F1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0F
Deuteranopia (green-blind)
#746828
Tritanopia (blue-blind)
#217668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7a1f;
/* rgb */ color: rgb(45, 122, 31);
/* oklch */ color: oklch(51.3% 0.146 140.9);
Tailwind
colors: {
  custom: {
    50: '#70a161',
    500: '#2d7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #2d7a1f;
$custom-light: #70a161;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7a1f",
  "rgb": {
    "r": 45,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 110.769,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51257,
    "c": 0.14604,
    "h": 140.9
  },
  "luminance": 0.14576
}

Semantic roles & 50–950 ramp

primary
#2D7A1F
secondary
#9E47AD
accent
#45E3CA
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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