#2A7940#2A7940

#2A7940 is a mid, moderate green. Relative luminance 0.145; OKLCH L 51.3% C 0.117 H 149.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#2A7940
RGBrgb(42, 121, 64)
HSLhsl(137, 48%, 32%)
HSVhsv(137, 65%, 47%)
CMYKcmyk(65.3%, 0%, 47.1%, 52.5%)
CIE-LABlab(44.99, -37.42, 24.30)
CIE-LCHlch(44.99, 44.61, 147.00°)
OKLaboklab(51.31% -0.101 0.0596)
OKLCHoklch(51.31% 0.117 149.5)
XYZxyz(8.7170, 14.5363, 7.1959)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7940 #792A63
analogous
#3C792A #2A7940 #2A7968
triadic
#2A7940 #402A79 #79402A
tetradic
#2A7940 #2A3C79 #792A63 #79682A
square
#2A7940 #2A3C79 #792A63 #79682A
split-complementary
#2A7940 #682A79 #792A3C
monochromatic
#0A1E10 #1A4C28 #2A7940 #3AA658 #58C577

Accessibility & contrast

On white

5.37
#2A7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2A7940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7940
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7940#FFFFFF#000000##FFFFFF
##2A79401.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#706844
Tritanopia (blue-blind)
#10776B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7940;
/* rgb */ color: rgb(42, 121, 64);
/* oklch */ color: oklch(51.3% 0.117 149.5);
Tailwind
colors: {
  custom: {
    50: '#6da076',
    500: '#2a7940',
    950: '#000000',
  },
}
SCSS
$custom: #2a7940;
$custom-light: #6da076;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7940",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 136.709,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51309,
    "c": 0.1173,
    "h": 149.5
  },
  "luminance": 0.14537
}

Semantic roles & 50–950 ramp

primary
#2A7940
secondary
#AB5493
accent
#50B2D8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2A7940

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

Preview Lab → · Contrast checker → · Palette generator →

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