#2D871F#2D871F

#2D871F is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.162 H 141.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2D871F
RGBrgb(45, 135, 31)
HSLhsl(112, 63%, 33%)
HSVhsv(112, 77%, 53%)
CMYKcmyk(66.7%, 0%, 77%, 47.1%)
CIE-LABlab(49.48, -46.24, 45.10)
CIE-LCHlch(49.48, 64.59, 135.72°)
OKLaboklab(54.92% -0.1263 0.1015)
OKLCHoklch(54.92% 0.162 141.2)
XYZxyz(9.9930, 17.9838, 4.2406)
Luminance0.1799 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D871F #791F87
analogous
#61871F #2D871F #1F8745
triadic
#2D871F #1F2D87 #871F2D
tetradic
#2D871F #1F6187 #791F87 #87451F
square
#2D871F #1F6187 #791F87 #87451F
split-complementary
#2D871F #451F87 #871F61
monochromatic
#0C2308 #1C5514 #2D871F #3EB92A #5DD64B

Accessibility & contrast

On white

4.57
#2D871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#2D871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D871F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D871F#FFFFFF#000000##000000
##2D871F1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A09
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#1C8373
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2d871f;
/* rgb */ color: rgb(45, 135, 31);
/* oklch */ color: oklch(54.9% 0.162 141.2);
Tailwind
colors: {
  custom: {
    50: '#73ab62',
    500: '#2d871f',
    950: '#000000',
  },
}
SCSS
$custom: #2d871f;
$custom-light: #73ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#2d871f",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 111.923,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54922,
    "c": 0.16205,
    "h": 141.2
  },
  "luminance": 0.17985
}

Semantic roles & 50–950 ramp

primary
#2D871F
secondary
#A94AB8
accent
#42E6D0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2D871F

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

Preview Lab → · Contrast checker → · Palette generator →

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