#2D862F#2D862F

#2D862F is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.8% C 0.150 H 143.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2D862F
RGBrgb(45, 134, 47)
HSLhsl(121, 50%, 35%)
HSVhsv(121, 66%, 53%)
CMYKcmyk(66.4%, 0%, 64.9%, 47.5%)
CIE-LABlab(49.27, -44.34, 38.18)
CIE-LCHlch(49.27, 58.52, 139.27°)
OKLaboklab(54.79% -0.1203 0.089)
OKLCHoklch(54.79% 0.15 143.5)
XYZxyz(10.1198, 17.8123, 5.5936)
Luminance0.1781 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D862F #862D84
analogous
#58862D #2D862F #2D865B
triadic
#2D862F #2F2D86 #862F2D
tetradic
#2D862F #2D5886 #862D84 #865B2D
square
#2D862F #2D5886 #862D84 #865B2D
split-complementary
#2D862F #5B2D86 #862D58
monochromatic
#0E2A0F #1E581F #2D862F #3CB43F #63CB65

Accessibility & contrast

On white

4.60
#2D862F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#2D862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2D862F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D862F#FFFFFF#000000##FFFFFF
##2D862F1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A25
Deuteranopia (green-blind)
#7E7236
Tritanopia (blue-blind)
#198274
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2d862f;
/* rgb */ color: rgb(45, 134, 47);
/* oklch */ color: oklch(54.8% 0.150 143.5);
Tailwind
colors: {
  custom: {
    50: '#72aa6b',
    500: '#2d862f',
    950: '#000000',
  },
}
SCSS
$custom: #2d862f;
$custom-light: #72aa6b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d862f",
  "rgb": {
    "r": 45,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 121.348,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.54791,
    "c": 0.14966,
    "h": 143.5
  },
  "luminance": 0.17813
}

Semantic roles & 50–950 ramp

primary
#2D862F
secondary
#B15EAF
accent
#4FD6D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2D862F

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

Preview Lab → · Contrast checker → · Palette generator →

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