#2F8740#2F8740

#2F8740 is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.4% C 0.135 H 147.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#2F8740
RGBrgb(47, 135, 64)
HSLhsl(132, 48%, 36%)
HSVhsv(132, 65%, 53%)
CMYKcmyk(65.2%, 0%, 52.6%, 47.1%)
CIE-LABlab(49.86, -41.99, 30.44)
CIE-LCHlch(49.86, 51.86, 144.07°)
OKLaboklab(55.36% -0.1134 0.0735)
OKLCHoklch(55.36% 0.135 147.1)
XYZxyz(10.7609, 18.3014, 7.8149)
Luminance0.1830 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8740 #872F76
analogous
#4A872F #2F8740 #2F876C
triadic
#2F8740 #402F87 #87402F
tetradic
#2F8740 #2F4A87 #872F76 #876C2F
square
#2F8740 #2F4A87 #872F76 #876C2F
split-complementary
#2F8740 #6C2F87 #872F4A
monochromatic
#0F2C15 #1F5A2A #2F8740 #3FB456 #66CA7A

Accessibility & contrast

On white

4.51
#2F8740 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#2F8740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F8740
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8740#FFFFFF#000000##000000
##2F87401.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897B3A
Deuteranopia (green-blind)
#7E7445
Tritanopia (blue-blind)
#168477
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2f8740;
/* rgb */ color: rgb(47, 135, 64);
/* oklch */ color: oklch(55.4% 0.135 147.1);
Tailwind
colors: {
  custom: {
    50: '#72ab76',
    500: '#2f8740',
    950: '#000000',
  },
}
SCSS
$custom: #2f8740;
$custom-light: #72ab76;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8740",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 64
  },
  "hsl": {
    "h": 131.591,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5536,
    "c": 0.13514,
    "h": 147.1
  },
  "luminance": 0.18302
}

Semantic roles & 50–950 ramp

primary
#2F8740
secondary
#B161A1
accent
#50BED8
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #2F8740

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

Preview Lab → · Contrast checker → · Palette generator →

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