#2C8542#2C8542

#2C8542 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.132 H 148.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2C8542
RGBrgb(44, 133, 66)
HSLhsl(135, 50%, 35%)
HSVhsv(135, 67%, 52%)
CMYKcmyk(66.9%, 0%, 50.4%, 47.8%)
CIE-LABlab(49.13, -41.53, 28.46)
CIE-LCHlch(49.13, 50.35, 145.58°)
OKLaboklab(54.75% -0.112 0.0692)
OKLCHoklch(54.75% 0.132 148.3)
XYZxyz(10.4088, 17.7028, 8.0216)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C8542 #852C6F
analogous
#43852C #2C8542 #2C856E
triadic
#2C8542 #422C85 #85422C
tetradic
#2C8542 #2C4385 #852C6F #856E2C
square
#2C8542 #2C4385 #852C6F #856E2C
split-complementary
#2C8542 #6E2C85 #852C43
monochromatic
#0E2914 #1D572B #2C8542 #3BB359 #61CB7B

Accessibility & contrast

On white

4.62
#2C8542 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#2C8542 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2C8542
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C8542#FFFFFF#000000##FFFFFF
##2C85421.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86793D
Deuteranopia (green-blind)
#7B7247
Tritanopia (blue-blind)
#0D8275
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2c8542;
/* rgb */ color: rgb(44, 133, 66);
/* oklch */ color: oklch(54.7% 0.132 148.3);
Tailwind
colors: {
  custom: {
    50: '#70a978',
    500: '#2c8542',
    950: '#000000',
  },
}
SCSS
$custom: #2c8542;
$custom-light: #70a978;
$custom-dark: #000000;
JSON
{
  "hex": "#2c8542",
  "rgb": {
    "r": 44,
    "g": 133,
    "b": 66
  },
  "hsl": {
    "h": 134.831,
    "s": 50.282,
    "l": 34.706
  },
  "oklch": {
    "l": 0.54747,
    "c": 0.13168,
    "h": 148.3
  },
  "luminance": 0.17704
}

Semantic roles & 50–950 ramp

primary
#2C8542
secondary
#B15C9C
accent
#4EB7DA
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2C8542

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

Preview Lab → · Contrast checker → · Palette generator →

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