#2D7F1B#2D7F1B

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

Color values

HEX#2D7F1B
RGBrgb(45, 127, 27)
HSLhsl(109, 65%, 30%)
HSVhsv(109, 79%, 50%)
CMYKcmyk(64.6%, 0%, 78.7%, 50.2%)
CIE-LABlab(46.73, -43.61, 43.84)
CIE-LCHlch(46.73, 61.83, 134.85°)
OKLaboklab(52.64% -0.1194 0.0983)
OKLCHoklch(52.64% 0.155 140.6)
XYZxyz(8.8690, 15.8149, 3.6219)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7F1B #6D1B7F
analogous
#5F7F1B #2D7F1B #1B7F3B
triadic
#2D7F1B #1B2D7F #7F1B2D
tetradic
#2D7F1B #1B5F7F #6D1B7F #7F3B1B
square
#2D7F1B #1B5F7F #6D1B7F #7F3B1B
split-complementary
#2D7F1B #3B1B7F #7F1B5F
monochromatic
#091A06 #1B4D10 #2D7F1B #3FB126 #5AD63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D7F1B#FFFFFF#000000##FFFFFF
##2D7F1B1.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)
#837304
Deuteranopia (green-blind)
#796C26
Tritanopia (blue-blind)
#207B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d7f1b;
/* rgb */ color: rgb(45, 127, 27);
/* oklch */ color: oklch(52.6% 0.155 140.6);
Tailwind
colors: {
  custom: {
    50: '#71a55f',
    500: '#2d7f1b',
    950: '#000000',
  },
}
SCSS
$custom: #2d7f1b;
$custom-light: #71a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7f1b",
  "rgb": {
    "r": 45,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 109.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52641,
    "c": 0.15468,
    "h": 140.6
  },
  "luminance": 0.15816
}

Semantic roles & 50–950 ramp

primary
#2D7F1B
secondary
#9F43B3
accent
#40E8CA
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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