#2C842B#2C842B

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

Color values

HEX#2C842B
RGBrgb(44, 132, 43)
HSLhsl(119, 51%, 34%)
HSVhsv(119, 67%, 52%)
CMYKcmyk(66.7%, 0%, 67.4%, 48.2%)
CIE-LABlab(48.53, -44.26, 39.18)
CIE-LCHlch(48.53, 59.11, 138.48°)
OKLaboklab(54.16% -0.1203 0.0907)
OKLCHoklch(54.16% 0.151 143)
XYZxyz(9.7255, 17.2114, 5.0946)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C842B #832B84
analogous
#59842B #2C842B #2B8457
triadic
#2C842B #2B2C84 #842B2C
tetradic
#2C842B #2B5984 #832B84 #84572B
square
#2C842B #2B5984 #832B84 #84572B
split-complementary
#2C842B #572B84 #842B59
monochromatic
#0D280D #1D561C #2C842B #3BB23A #60CB5F

Accessibility & contrast

On white

4.73
#2C842B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#2C842B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C842B
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C842B#FFFFFF#000000##FFFFFF
##2C842B1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877820
Deuteranopia (green-blind)
#7C7033
Tritanopia (blue-blind)
#198072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2c842b;
/* rgb */ color: rgb(44, 132, 43);
/* oklch */ color: oklch(54.2% 0.151 143.0);
Tailwind
colors: {
  custom: {
    50: '#71a969',
    500: '#2c842b',
    950: '#000000',
  },
}
SCSS
$custom: #2c842b;
$custom-light: #71a969;
$custom-dark: #000000;
JSON
{
  "hex": "#2c842b",
  "rgb": {
    "r": 44,
    "g": 132,
    "b": 43
  },
  "hsl": {
    "h": 119.326,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54157,
    "c": 0.15061,
    "h": 143
  },
  "luminance": 0.17212
}

Semantic roles & 50–950 ramp

primary
#2C842B
secondary
#B05AB1
accent
#4DDAD9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2C842B

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

Preview Lab → · Contrast checker → · Palette generator →

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