#2A7947#2A7947

#2A7947 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.4% C 0.110 H 152.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2A7947
RGBrgb(42, 121, 71)
HSLhsl(142, 48%, 32%)
HSVhsv(142, 65%, 47%)
CMYKcmyk(65.3%, 0%, 41.3%, 52.5%)
CIE-LABlab(45.11, -36.11, 20.52)
CIE-LCHlch(45.11, 41.54, 150.39°)
OKLaboklab(51.44% -0.0976 0.0511)
OKLCHoklch(51.44% 0.11 152.4)
XYZxyz(8.9288, 14.6210, 8.3116)
Luminance0.1462 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7947 #792A5C
analogous
#35792A #2A7947 #2A796F
triadic
#2A7947 #472A79 #79472A
tetradic
#2A7947 #2A3579 #792A5C #796F2A
square
#2A7947 #2A3579 #792A5C #796F2A
split-complementary
#2A7947 #6F2A79 #792A35
monochromatic
#0A1E12 #1A4C2C #2A7947 #3AA662 #58C580

Accessibility & contrast

On white

5.35
#2A7947 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2A7947 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7947
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7947#FFFFFF#000000##FFFFFF
##2A79471.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F44
Deuteranopia (green-blind)
#6F684A
Tritanopia (blue-blind)
#0A776D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7947;
/* rgb */ color: rgb(42, 121, 71);
/* oklch */ color: oklch(51.4% 0.110 152.4);
Tailwind
colors: {
  custom: {
    50: '#6da07a',
    500: '#2a7947',
    950: '#000000',
  },
}
SCSS
$custom: #2a7947;
$custom-light: #6da07a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7947",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 71
  },
  "hsl": {
    "h": 142.025,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51445,
    "c": 0.11018,
    "h": 152.4
  },
  "luminance": 0.14622
}

Semantic roles & 50–950 ramp

primary
#2A7947
secondary
#AB548B
accent
#50A6D8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2A7947

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

Preview Lab → · Contrast checker → · Palette generator →

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