#2F7939#2F7939

#2F7939 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.122 H 146.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2F7939
RGBrgb(47, 121, 57)
HSLhsl(128, 44%, 33%)
HSVhsv(128, 61%, 47%)
CMYKcmyk(61.2%, 0%, 52.9%, 52.5%)
CIE-LABlab(45.04, -37.38, 28.21)
CIE-LCHlch(45.04, 46.83, 142.95°)
OKLaboklab(51.36% -0.1012 0.0681)
OKLCHoklch(51.36% 0.122 146.1)
XYZxyz(8.7476, 14.5737, 6.2221)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7939 #792F6F
analogous
#4A792F #2F7939 #2F795E
triadic
#2F7939 #392F79 #79392F
tetradic
#2F7939 #2F4A79 #792F6F #795E2F
square
#2F7939 #2F4A79 #792F6F #795E2F
split-complementary
#2F7939 #5E2F79 #792F4A
monochromatic
#0D210F #1E4D24 #2F7939 #40A54E #61C26E

Accessibility & contrast

On white

5.36
#2F7939 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#2F7939 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7939
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7939#FFFFFF#000000##FFFFFF
##2F79391.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F34
Deuteranopia (green-blind)
#71683E
Tritanopia (blue-blind)
#1F766A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7939;
/* rgb */ color: rgb(47, 121, 57);
/* oklch */ color: oklch(51.4% 0.122 146.1);
Tailwind
colors: {
  custom: {
    50: '#70a071',
    500: '#2f7939',
    950: '#000000',
  },
}
SCSS
$custom: #2f7939;
$custom-light: #70a071;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7939",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 57
  },
  "hsl": {
    "h": 128.108,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51362,
    "c": 0.12197,
    "h": 146.1
  },
  "luminance": 0.14574
}

Semantic roles & 50–950 ramp

primary
#2F7939
secondary
#A85B9E
accent
#54C3D4
background
#F7F9F6
surface
#EDF2EC
border
#C8CCC7
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2F7939

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

Preview Lab → · Contrast checker → · Palette generator →

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