#2C842F#2C842F

#2C842F is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.2% C 0.147 H 143.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#2C842F
RGBrgb(44, 132, 47)
HSLhsl(122, 50%, 35%)
HSVhsv(122, 67%, 52%)
CMYKcmyk(66.7%, 0%, 64.4%, 48.2%)
CIE-LABlab(48.56, -43.81, 37.38)
CIE-LCHlch(48.56, 57.59, 139.53°)
OKLaboklab(54.2% -0.1188 0.0873)
OKLCHoklch(54.2% 0.147 143.7)
XYZxyz(9.8025, 17.2422, 5.5003)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C842F #842C81
analogous
#55842C #2C842F #2C845B
triadic
#2C842F #2F2C84 #842F2C
tetradic
#2C842F #2C5584 #842C81 #845B2C
square
#2C842F #2C5584 #842C81 #845B2C
split-complementary
#2C842F #5B2C84 #842C55
monochromatic
#0D280E #1D561F #2C842F #3BB23F #60CA64

Accessibility & contrast

On white

4.72
#2C842F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#2C842F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C842F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C842F#FFFFFF#000000##FFFFFF
##2C842F1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877825
Deuteranopia (green-blind)
#7C7036
Tritanopia (blue-blind)
#178072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2c842f;
/* rgb */ color: rgb(44, 132, 47);
/* oklch */ color: oklch(54.2% 0.147 143.7);
Tailwind
colors: {
  custom: {
    50: '#71a96b',
    500: '#2c842f',
    950: '#000000',
  },
}
SCSS
$custom: #2c842f;
$custom-light: #71a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c842f",
  "rgb": {
    "r": 44,
    "g": 132,
    "b": 47
  },
  "hsl": {
    "h": 122.045,
    "s": 50,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54201,
    "c": 0.14745,
    "h": 143.7
  },
  "luminance": 0.17243
}

Semantic roles & 50–950 ramp

primary
#2C842F
secondary
#B05CAD
accent
#4ED5DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #2C842F

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

Preview Lab → · Contrast checker → · Palette generator →

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