#2A7047#2A7047

#2A7047 is a mid, moderate green. Relative luminance 0.125; OKLCH L 48.9% C 0.097 H 154.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#2A7047
RGBrgb(42, 112, 71)
HSLhsl(145, 45%, 30%)
HSVhsv(145, 63%, 44%)
CMYKcmyk(62.5%, 0%, 36.6%, 56.1%)
CIE-LABlab(42.05, -32.16, 16.45)
CIE-LCHlch(42.05, 36.12, 152.91°)
OKLaboklab(48.94% -0.0873 0.0414)
OKLCHoklch(48.94% 0.097 154.7)
XYZxyz(7.8857, 12.5348, 7.9639)
Luminance0.1254 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7047 #702A53
analogous
#30702A #2A7047 #2A706A
triadic
#2A7047 #472A70 #70472A
tetradic
#2A7047 #2A3070 #702A53 #706A2A
square
#2A7047 #2A3070 #702A53 #706A2A
split-complementary
#2A7047 #6A2A70 #702A30
monochromatic
#09170F #19432B #2A7047 #3B9D63 #55BF81

Accessibility & contrast

On white

5.99
#2A7047 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2A7047 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7047
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7047#FFFFFF#000000##FFFFFF
##2A70471.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706744
Deuteranopia (green-blind)
#66614A
Tritanopia (blue-blind)
#106F65
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7047;
/* rgb */ color: rgb(42, 112, 71);
/* oklch */ color: oklch(48.9% 0.097 154.7);
Tailwind
colors: {
  custom: {
    50: '#6b9a7a',
    500: '#2a7047',
    950: '#000000',
  },
}
SCSS
$custom: #2a7047;
$custom-light: #6b9a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7047",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 71
  },
  "hsl": {
    "h": 144.857,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.48935,
    "c": 0.09659,
    "h": 154.7
  },
  "luminance": 0.12536
}

Semantic roles & 50–950 ramp

primary
#2A7047
secondary
#A25482
accent
#539FD5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #2A7047

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

Preview Lab → · Contrast checker → · Palette generator →

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