#2D871B#2D871B

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

Color values

HEX#2D871B
RGBrgb(45, 135, 27)
HSLhsl(110, 67%, 32%)
HSVhsv(110, 80%, 53%)
CMYKcmyk(66.7%, 0%, 80%, 47.1%)
CIE-LABlab(49.45, -46.53, 46.47)
CIE-LCHlch(49.45, 65.76, 135.03°)
OKLaboklab(54.9% -0.1273 0.1038)
OKLCHoklch(54.9% 0.164 140.8)
XYZxyz(9.9435, 17.9640, 3.9801)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D871B #751B87
analogous
#63871B #2D871B #1B873F
triadic
#2D871B #1B2D87 #871B2D
tetradic
#2D871B #1B6387 #751B87 #873F1B
square
#2D871B #1B6387 #751B87 #873F1B
split-complementary
#2D871B #3F1B87 #871B63
monochromatic
#0B2107 #1C5411 #2D871B #3EBA25 #5CD943

Accessibility & contrast

On white

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

On black

4.59
#2D871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D871B
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D871B#FFFFFF#000000##000000
##2D871B1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#1D8273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2d871b;
/* rgb */ color: rgb(45, 135, 27);
/* oklch */ color: oklch(54.9% 0.164 140.8);
Tailwind
colors: {
  custom: {
    50: '#73ab61',
    500: '#2d871b',
    950: '#000000',
  },
}
SCSS
$custom: #2d871b;
$custom-light: #73ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#2d871b",
  "rgb": {
    "r": 45,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 110,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54895,
    "c": 0.16426,
    "h": 140.8
  },
  "luminance": 0.17965
}

Semantic roles & 50–950 ramp

primary
#2D871B
secondary
#A644BA
accent
#3EEACD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2D871B

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

Preview Lab → · Contrast checker → · Palette generator →

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