#2D851F#2D851F

#2D851F is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.4% C 0.160 H 141.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2D851F
RGBrgb(45, 133, 31)
HSLhsl(112, 62%, 32%)
HSVhsv(112, 77%, 52%)
CMYKcmyk(66.2%, 0%, 76.7%, 47.8%)
CIE-LABlab(48.80, -45.51, 44.42)
CIE-LCHlch(48.80, 63.60, 135.69°)
OKLaboklab(54.36% -0.1244 0.1001)
OKLCHoklch(54.36% 0.16 141.2)
XYZxyz(9.7165, 17.4309, 4.1485)
Luminance0.1743 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D851F #771F85
analogous
#60851F #2D851F #1F8544
triadic
#2D851F #1F2D85 #851F2D
tetradic
#2D851F #1F6085 #771F85 #85441F
square
#2D851F #1F6085 #771F85 #85441F
split-complementary
#2D851F #441F85 #851F60
monochromatic
#0B2208 #1C5313 #2D851F #3EB72B #5DD54A

Accessibility & contrast

On white

4.68
#2D851F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#2D851F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D851F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D851F#FFFFFF#000000##FFFFFF
##2D851F1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780A
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#1D8171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2d851f;
/* rgb */ color: rgb(45, 133, 31);
/* oklch */ color: oklch(54.4% 0.160 141.2);
Tailwind
colors: {
  custom: {
    50: '#72a962',
    500: '#2d851f',
    950: '#000000',
  },
}
SCSS
$custom: #2d851f;
$custom-light: #72a962;
$custom-dark: #000000;
JSON
{
  "hex": "#2d851f",
  "rgb": {
    "r": 45,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 111.765,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54361,
    "c": 0.15964,
    "h": 141.2
  },
  "luminance": 0.17432
}

Semantic roles & 50–950 ramp

primary
#2D851F
secondary
#A849B7
accent
#43E5CF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2D851F

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

Preview Lab → · Contrast checker → · Palette generator →

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