#2F7E47#2F7E47

#2F7E47 is a mid, moderate green. Relative luminance 0.160; OKLCH L 53.0% C 0.115 H 150.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#2F7E47
RGBrgb(47, 126, 71)
HSLhsl(138, 46%, 34%)
HSVhsv(138, 63%, 49%)
CMYKcmyk(62.7%, 0%, 43.7%, 50.6%)
CIE-LABlab(46.95, -37.11, 22.96)
CIE-LCHlch(46.95, 43.64, 148.26°)
OKLaboklab(53% -0.1003 0.0568)
OKLCHoklch(53% 0.115 150.5)
XYZxyz(9.7697, 15.9800, 8.5296)
Luminance0.1598 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E47 #7E2F66
analogous
#3F7E2F #2F7E47 #2F7E6F
triadic
#2F7E47 #472F7E #7E472F
tetradic
#2F7E47 #2F3F7E #7E2F66 #7E6F2F
square
#2F7E47 #2F3F7E #7E2F66 #7E6F2F
split-complementary
#2F7E47 #6F2F7E #7E2F3F
monochromatic
#0E2515 #1E512E #2F7E47 #40AB60 #63C580

Accessibility & contrast

On white

5.00
#2F7E47 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#2F7E47 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E47
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E47#FFFFFF#000000##FFFFFF
##2F7E471.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7443
Deuteranopia (green-blind)
#746C4B
Tritanopia (blue-blind)
#177C70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7e47;
/* rgb */ color: rgb(47, 126, 71);
/* oklch */ color: oklch(53.0% 0.115 150.5);
Tailwind
colors: {
  custom: {
    50: '#70a47b',
    500: '#2f7e47',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e47;
$custom-light: #70a47b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e47",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 71
  },
  "hsl": {
    "h": 138.228,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.52998,
    "c": 0.11526,
    "h": 150.5
  },
  "luminance": 0.15981
}

Semantic roles & 50–950 ramp

primary
#2F7E47
secondary
#AC5D94
accent
#52AED5
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2F7E47

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

Preview Lab → · Contrast checker → · Palette generator →

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