#2D861F#2D861F

#2D861F is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.6% C 0.161 H 141.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2D861F
RGBrgb(45, 134, 31)
HSLhsl(112, 62%, 32%)
HSVhsv(112, 77%, 53%)
CMYKcmyk(66.4%, 0%, 76.9%, 47.5%)
CIE-LABlab(49.14, -45.88, 44.76)
CIE-LCHlch(49.14, 64.09, 135.71°)
OKLaboklab(54.64% -0.1254 0.1008)
OKLCHoklch(54.64% 0.161 141.2)
XYZxyz(9.8541, 17.7060, 4.1944)
Luminance0.1771 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D861F #781F86
analogous
#60861F #2D861F #1F8645
triadic
#2D861F #1F2D86 #861F2D
tetradic
#2D861F #1F6086 #781F86 #86451F
square
#2D861F #1F6086 #781F86 #86451F
split-complementary
#2D861F #451F86 #861F60
monochromatic
#0C2308 #1C5414 #2D861F #3EB82A #5DD54A

Accessibility & contrast

On white

4.62
#2D861F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#2D861F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2D861F
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D861F#FFFFFF#000000##FFFFFF
##2D861F1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897909
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#1D8272
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2d861f;
/* rgb */ color: rgb(45, 134, 31);
/* oklch */ color: oklch(54.6% 0.161 141.2);
Tailwind
colors: {
  custom: {
    50: '#73aa62',
    500: '#2d861f',
    950: '#000000',
  },
}
SCSS
$custom: #2d861f;
$custom-light: #73aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#2d861f",
  "rgb": {
    "r": 45,
    "g": 134,
    "b": 31
  },
  "hsl": {
    "h": 111.845,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54642,
    "c": 0.16085,
    "h": 141.2
  },
  "luminance": 0.17707
}

Semantic roles & 50–950 ramp

primary
#2D861F
secondary
#A949B8
accent
#42E5CF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2D861F

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

Preview Lab → · Contrast checker → · Palette generator →

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