#2A7F47#2A7F47

#2A7F47 is a mid, moderate green. Relative luminance 0.161; OKLCH L 53.1% C 0.119 H 151.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2A7F47
RGBrgb(42, 127, 71)
HSLhsl(140, 50%, 33%)
HSVhsv(140, 67%, 50%)
CMYKcmyk(66.9%, 0%, 44.1%, 50.2%)
CIE-LABlab(47.14, -38.64, 23.17)
CIE-LCHlch(47.14, 45.06, 149.05°)
OKLaboklab(53.11% -0.1043 0.0573)
OKLCHoklch(53.11% 0.119 151.2)
XYZxyz(9.6808, 16.1249, 8.5623)
Luminance0.1613 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F47 #7F2A62
analogous
#377F2A #2A7F47 #2A7F71
triadic
#2A7F47 #472A7F #7F472A
tetradic
#2A7F47 #2A377F #7F2A62 #7F712A
square
#2A7F47 #2A377F #7F2A62 #7F712A
split-complementary
#2A7F47 #712A7F #7F2A37
monochromatic
#0C2314 #1B512D #2A7F47 #39AD61 #5BC980

Accessibility & contrast

On white

4.97
#2A7F47 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2A7F47 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F47
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F47#FFFFFF#000000##FFFFFF
##2A7F471.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7443
Deuteranopia (green-blind)
#756D4B
Tritanopia (blue-blind)
#057D71
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a7f47;
/* rgb */ color: rgb(42, 127, 71);
/* oklch */ color: oklch(53.1% 0.119 151.2);
Tailwind
colors: {
  custom: {
    50: '#6ea57b',
    500: '#2a7f47',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f47;
$custom-light: #6ea57b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f47",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 71
  },
  "hsl": {
    "h": 140.471,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53113,
    "c": 0.11899,
    "h": 151.2
  },
  "luminance": 0.16126
}

Semantic roles & 50–950 ramp

primary
#2A7F47
secondary
#AE5790
accent
#4EAADA
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2A7F47

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

Preview Lab → · Contrast checker → · Palette generator →

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