#2F7D38#2F7D38

#2F7D38 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.129 H 145.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2F7D38
RGBrgb(47, 125, 56)
HSLhsl(127, 45%, 34%)
HSVhsv(127, 62%, 49%)
CMYKcmyk(62.4%, 0%, 55.2%, 51%)
CIE-LABlab(46.39, -39.18, 30.38)
CIE-LCHlch(46.39, 49.58, 142.21°)
OKLaboklab(52.46% -0.1061 0.0729)
OKLCHoklch(52.46% 0.129 145.5)
XYZxyz(9.2191, 15.5562, 6.2574)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D38 #7D2F74
analogous
#4D7D2F #2F7D38 #2F7D5F
triadic
#2F7D38 #382F7D #7D382F
tetradic
#2F7D38 #2F4D7D #7D2F74 #7D5F2F
square
#2F7D38 #2F4D7D #7D2F74 #7D5F2F
split-complementary
#2F7D38 #5F2F7D #7D2F4D
monochromatic
#0E2410 #1E5124 #2F7D38 #40A94C #62C46E

Accessibility & contrast

On white

5.11
#2F7D38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2F7D38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D38
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D38#FFFFFF#000000##FFFFFF
##2F7D381.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7232
Deuteranopia (green-blind)
#756B3D
Tritanopia (blue-blind)
#1E7A6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7d38;
/* rgb */ color: rgb(47, 125, 56);
/* oklch */ color: oklch(52.5% 0.129 145.5);
Tailwind
colors: {
  custom: {
    50: '#70a370',
    500: '#2f7d38',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d38;
$custom-light: #70a370;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d38",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 56
  },
  "hsl": {
    "h": 126.923,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.52463,
    "c": 0.12868,
    "h": 145.5
  },
  "luminance": 0.15557
}

Semantic roles & 50–950 ramp

primary
#2F7D38
secondary
#AB5DA2
accent
#53C6D5
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2F7D38

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

Preview Lab → · Contrast checker → · Palette generator →

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