#2A8940#2A8940

#2A8940 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.8% C 0.140 H 147.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A8940
RGBrgb(42, 137, 64)
HSLhsl(134, 53%, 35%)
HSVhsv(134, 69%, 54%)
CMYKcmyk(69.3%, 0%, 53.3%, 46.3%)
CIE-LABlab(50.40, -43.83, 31.07)
CIE-LCHlch(50.40, 53.72, 144.67°)
OKLaboklab(55.77% -0.1182 0.0749)
OKLCHoklch(55.77% 0.14 147.6)
XYZxyz(10.8251, 18.7526, 7.8986)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8940 #892A73
analogous
#43892A #2A8940 #2A8970
triadic
#2A8940 #402A89 #89402A
tetradic
#2A8940 #2A4389 #892A73 #89702A
square
#2A8940 #2A4389 #892A73 #89702A
split-complementary
#2A8940 #702A89 #892A43
monochromatic
#0D2B14 #1C5A2A #2A8940 #38B856 #5FCE79

Accessibility & contrast

On white

4.42
#2A8940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#2A8940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8940
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8940#FFFFFF#000000##000000
##2A89401.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7D3A
Deuteranopia (green-blind)
#7F7545
Tritanopia (blue-blind)
#028678
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8940;
/* rgb */ color: rgb(42, 137, 64);
/* oklch */ color: oklch(55.8% 0.140 147.6);
Tailwind
colors: {
  custom: {
    50: '#70ac76',
    500: '#2a8940',
    950: '#000000',
  },
}
SCSS
$custom: #2a8940;
$custom-light: #70ac76;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8940",
  "rgb": {
    "r": 42,
    "g": 137,
    "b": 64
  },
  "hsl": {
    "h": 133.895,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.55766,
    "c": 0.13991,
    "h": 147.6
  },
  "luminance": 0.18754
}

Semantic roles & 50–950 ramp

primary
#2A8940
secondary
#B45B9F
accent
#4BBBDC
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #2A8940

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

Preview Lab → · Contrast checker → · Palette generator →

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