#2F7E31#2F7E31

#2F7E31 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.6% C 0.136 H 143.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2F7E31
RGBrgb(47, 126, 49)
HSLhsl(122, 46%, 34%)
HSVhsv(122, 63%, 49%)
CMYKcmyk(62.7%, 0%, 61.1%, 50.6%)
CIE-LABlab(46.64, -40.54, 34.25)
CIE-LCHlch(46.64, 53.07, 139.81°)
OKLaboklab(52.65% -0.11 0.0807)
OKLCHoklch(52.65% 0.136 143.7)
XYZxyz(9.1870, 15.7469, 5.4605)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E31 #7E2F7C
analogous
#557E2F #2F7E31 #2F7E59
triadic
#2F7E31 #312F7E #7E312F
tetradic
#2F7E31 #2F557E #7E2F7C #7E592F
square
#2F7E31 #2F557E #7E2F7C #7E592F
split-complementary
#2F7E31 #592F7E #7E2F55
monochromatic
#0E250E #1E5120 #2F7E31 #40AB42 #63C565

Accessibility & contrast

On white

5.06
#2F7E31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2F7E31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E31
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E31#FFFFFF#000000##FFFFFF
##2F7E311.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807329
Deuteranopia (green-blind)
#776C37
Tritanopia (blue-blind)
#207B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7e31;
/* rgb */ color: rgb(47, 126, 49);
/* oklch */ color: oklch(52.6% 0.136 143.7);
Tailwind
colors: {
  custom: {
    50: '#71a46c',
    500: '#2f7e31',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e31;
$custom-light: #71a46c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e31",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 121.519,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.52645,
    "c": 0.13648,
    "h": 143.7
  },
  "luminance": 0.15748
}

Semantic roles & 50–950 ramp

primary
#2F7E31
secondary
#AC5DAA
accent
#52D2D5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2F7E31

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

Preview Lab → · Contrast checker → · Palette generator →

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