#2C851F#2C851F

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

Color values

HEX#2C851F
RGBrgb(44, 133, 31)
HSLhsl(112, 62%, 32%)
HSVhsv(112, 77%, 52%)
CMYKcmyk(66.9%, 0%, 76.7%, 47.8%)
CIE-LABlab(48.77, -45.74, 44.39)
CIE-LCHlch(48.77, 63.74, 135.86°)
OKLaboklab(54.33% -0.1249 0.1)
OKLCHoklch(54.33% 0.16 141.3)
XYZxyz(9.6731, 17.4085, 4.1465)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C851F #781F85
analogous
#5F851F #2C851F #1F8545
triadic
#2C851F #1F2C85 #851F2C
tetradic
#2C851F #1F5F85 #781F85 #85451F
square
#2C851F #1F5F85 #781F85 #85451F
split-complementary
#2C851F #451F85 #851F5F
monochromatic
#0B2208 #1C5313 #2C851F #3CB72B #5BD54A

Accessibility & contrast

On white

4.69
#2C851F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#2C851F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C851F
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C851F#FFFFFF#000000##FFFFFF
##2C851F1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c851f;
/* rgb */ color: rgb(44, 133, 31);
/* oklch */ color: oklch(54.3% 0.160 141.3);
Tailwind
colors: {
  custom: {
    50: '#72a962',
    500: '#2c851f',
    950: '#000000',
  },
}
SCSS
$custom: #2c851f;
$custom-light: #72a962;
$custom-dark: #000000;
JSON
{
  "hex": "#2c851f",
  "rgb": {
    "r": 44,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 112.353,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5433,
    "c": 0.16004,
    "h": 141.3
  },
  "luminance": 0.17409
}

Semantic roles & 50–950 ramp

primary
#2C851F
secondary
#A949B7
accent
#43E5D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2C851F

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

Preview Lab → · Contrast checker → · Palette generator →

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