#2A7847#2A7847

#2A7847 is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.2% C 0.109 H 152.6°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#2A7847
RGBrgb(42, 120, 71)
HSLhsl(142, 48%, 32%)
HSVhsv(142, 65%, 47%)
CMYKcmyk(65%, 0%, 40.8%, 52.9%)
CIE-LABlab(44.77, -35.68, 20.08)
CIE-LCHlch(44.77, 40.94, 150.64°)
OKLaboklab(51.17% -0.0965 0.05)
OKLCHoklch(51.17% 0.109 152.6)
XYZxyz(8.8079, 14.3792, 8.2713)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7847 #782A5B
analogous
#34782A #2A7847 #2A786E
triadic
#2A7847 #472A78 #78472A
tetradic
#2A7847 #2A3478 #782A5B #786E2A
square
#2A7847 #2A3478 #782A5B #786E2A
split-complementary
#2A7847 #6E2A78 #782A34
monochromatic
#0A1D11 #1A4B2C #2A7847 #3AA562 #58C580

Accessibility & contrast

On white

5.42
#2A7847 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#2A7847 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7847
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7847#FFFFFF#000000##FFFFFF
##2A78471.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786E44
Deuteranopia (green-blind)
#6E674A
Tritanopia (blue-blind)
#0B766C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7847;
/* rgb */ color: rgb(42, 120, 71);
/* oklch */ color: oklch(51.2% 0.109 152.6);
Tailwind
colors: {
  custom: {
    50: '#6da07a',
    500: '#2a7847',
    950: '#000000',
  },
}
SCSS
$custom: #2a7847;
$custom-light: #6da07a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7847",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 71
  },
  "hsl": {
    "h": 142.308,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51166,
    "c": 0.10869,
    "h": 152.6
  },
  "luminance": 0.1438
}

Semantic roles & 50–950 ramp

primary
#2A7847
secondary
#AA548A
accent
#50A5D8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F09
muted
#7A7E7B

Preview Lab

Preview with #2A7847

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

Preview Lab → · Contrast checker → · Palette generator →

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