#2C8731#2C8731

#2C8731 is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.1% C 0.150 H 144.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#2C8731
RGBrgb(44, 135, 49)
HSLhsl(123, 51%, 35%)
HSVhsv(123, 67%, 53%)
CMYKcmyk(67.4%, 0%, 63.7%, 47.1%)
CIE-LABlab(49.60, -44.71, 37.61)
CIE-LCHlch(49.60, 58.42, 139.93°)
OKLaboklab(55.06% -0.1212 0.088)
OKLCHoklch(55.06% 0.15 144)
XYZxyz(10.2564, 18.0841, 5.8552)
Luminance0.1809 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C8731 #872C82
analogous
#54872C #2C8731 #2C875F
triadic
#2C8731 #312C87 #87312C
tetradic
#2C8731 #2C5487 #872C82 #875F2C
square
#2C8731 #2C5487 #872C82 #875F2C
split-complementary
#2C8731 #5F2C87 #872C54
monochromatic
#0E2B0F #1D5920 #2C8731 #3BB542 #62CC68

Accessibility & contrast

On white

4.55
#2C8731 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#2C8731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2C8731
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C8731#FFFFFF#000000##000000
##2C87311.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B27
Deuteranopia (green-blind)
#7F7338
Tritanopia (blue-blind)
#158375
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2c8731;
/* rgb */ color: rgb(44, 135, 49);
/* oklch */ color: oklch(55.1% 0.150 144.0);
Tailwind
colors: {
  custom: {
    50: '#72ab6d',
    500: '#2c8731',
    950: '#000000',
  },
}
SCSS
$custom: #2c8731;
$custom-light: #72ab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c8731",
  "rgb": {
    "r": 44,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 123.297,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.55063,
    "c": 0.14973,
    "h": 144
  },
  "luminance": 0.18085
}

Semantic roles & 50–950 ramp

primary
#2C8731
secondary
#B25DAD
accent
#4DD3DA
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2C8731

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

Preview Lab → · Contrast checker → · Palette generator →

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