#2F7E40#2F7E40

#2F7E40 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.9% C 0.122 H 147.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2F7E40
RGBrgb(47, 126, 64)
HSLhsl(133, 46%, 34%)
HSVhsv(133, 63%, 49%)
CMYKcmyk(62.7%, 0%, 49.2%, 50.6%)
CIE-LABlab(46.84, -38.34, 26.67)
CIE-LCHlch(46.84, 46.70, 145.17°)
OKLaboklab(52.87% -0.1036 0.065)
OKLCHoklch(52.87% 0.122 147.9)
XYZxyz(9.5579, 15.8953, 7.4139)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E40 #7E2F6D
analogous
#467E2F #2F7E40 #2F7E68
triadic
#2F7E40 #402F7E #7E402F
tetradic
#2F7E40 #2F467E #7E2F6D #7E682F
square
#2F7E40 #2F467E #7E2F6D #7E682F
split-complementary
#2F7E40 #682F7E #7E2F46
monochromatic
#0E2513 #1E5129 #2F7E40 #40AB57 #63C578

Accessibility & contrast

On white

5.02
#2F7E40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2F7E40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E40
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E40#FFFFFF#000000##FFFFFF
##2F7E401.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733B
Deuteranopia (green-blind)
#756C44
Tritanopia (blue-blind)
#1A7B6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7e40;
/* rgb */ color: rgb(47, 126, 64);
/* oklch */ color: oklch(52.9% 0.122 147.9);
Tailwind
colors: {
  custom: {
    50: '#70a476',
    500: '#2f7e40',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e40;
$custom-light: #70a476;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e40",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 132.911,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.5287,
    "c": 0.12232,
    "h": 147.9
  },
  "luminance": 0.15896
}

Semantic roles & 50–950 ramp

primary
#2F7E40
secondary
#AC5D9B
accent
#52B9D5
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #2F7E40

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

Preview Lab → · Contrast checker → · Palette generator →

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