#2F7F1F#2F7F1F

#2F7F1F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.151 H 140.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2F7F1F
RGBrgb(47, 127, 31)
HSLhsl(110, 61%, 31%)
HSVhsv(110, 76%, 50%)
CMYKcmyk(63%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.82, -42.80, 42.46)
CIE-LCHlch(46.82, 60.28, 135.23°)
OKLaboklab(52.74% -0.1172 0.096)
OKLCHoklch(52.74% 0.151 140.7)
XYZxyz(9.0086, 15.8812, 3.8867)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F1F #6F1F7F
analogous
#5F7F1F #2F7F1F #1F7F3F
triadic
#2F7F1F #1F2F7F #7F1F2F
tetradic
#2F7F1F #1F5F7F #6F1F7F #7F3F1F
square
#2F7F1F #1F5F7F #6F1F7F #7F3F1F
split-complementary
#2F7F1F #3F1F7F #7F1F5F
monochromatic
#0B1D07 #1D4E13 #2F7F1F #41B02B #5ED246

Accessibility & contrast

On white

5.03
#2F7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F7F1F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F1F#FFFFFF#000000##FFFFFF
##2F7F1F1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#796C29
Tritanopia (blue-blind)
#237B6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f1f;
/* rgb */ color: rgb(47, 127, 31);
/* oklch */ color: oklch(52.7% 0.151 140.7);
Tailwind
colors: {
  custom: {
    50: '#72a561',
    500: '#2f7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f1f;
$custom-light: #72a561;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f1f",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 110,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52739,
    "c": 0.15145,
    "h": 140.7
  },
  "luminance": 0.15882
}

Semantic roles & 50–950 ramp

primary
#2F7F1F
secondary
#A048B2
accent
#44E4C9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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