#2C841F#2C841F

#2C841F is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.159 H 141.3°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2C841F
RGBrgb(44, 132, 31)
HSLhsl(112, 62%, 32%)
HSVhsv(112, 77%, 52%)
CMYKcmyk(66.7%, 0%, 76.5%, 48.2%)
CIE-LABlab(48.43, -45.38, 44.05)
CIE-LCHlch(48.43, 63.24, 135.85°)
OKLaboklab(54.05% -0.1239 0.0993)
OKLCHoklch(54.05% 0.159 141.3)
XYZxyz(9.5368, 17.1360, 4.1010)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C841F #771F84
analogous
#5F841F #2C841F #1F8445
triadic
#2C841F #1F2C84 #841F2C
tetradic
#2C841F #1F5F84 #771F84 #84451F
square
#2C841F #1F5F84 #771F84 #84451F
split-complementary
#2C841F #451F84 #841F5F
monochromatic
#0B2108 #1B5213 #2C841F #3DB62B #5BD449

Accessibility & contrast

On white

4.74
#2C841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2C841F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C841F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C841F#FFFFFF#000000##FFFFFF
##2C841F1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#1C8071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2c841f;
/* rgb */ color: rgb(44, 132, 31);
/* oklch */ color: oklch(54.0% 0.159 141.3);
Tailwind
colors: {
  custom: {
    50: '#72a962',
    500: '#2c841f',
    950: '#000000',
  },
}
SCSS
$custom: #2c841f;
$custom-light: #72a962;
$custom-dark: #000000;
JSON
{
  "hex": "#2c841f",
  "rgb": {
    "r": 44,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 112.277,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54049,
    "c": 0.15883,
    "h": 141.3
  },
  "luminance": 0.17137
}

Semantic roles & 50–950 ramp

primary
#2C841F
secondary
#A848B7
accent
#43E5D0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2C841F

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

Preview Lab → · Contrast checker → · Palette generator →

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