#2F7A1F#2F7A1F

#2F7A1F is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.145 H 140.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2F7A1F
RGBrgb(47, 122, 31)
HSLhsl(109, 59%, 30%)
HSVhsv(109, 75%, 48%)
CMYKcmyk(61.5%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.11, -40.88, 40.72)
CIE-LCHlch(45.11, 57.70, 135.12°)
OKLaboklab(51.33% -0.112 0.0923)
OKLCHoklch(51.33% 0.145 140.5)
XYZxyz(8.3788, 14.6216, 3.6768)
Luminance0.1462 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7A1F #6A1F7A
analogous
#5C7A1F #2F7A1F #1F7A3D
triadic
#2F7A1F #1F2F7A #7A1F2F
tetradic
#2F7A1F #1F5C7A #6A1F7A #7A3D1F
square
#2F7A1F #1F5C7A #6A1F7A #7A3D1F
split-complementary
#2F7A1F #3D1F7A #7A1F5C
monochromatic
#091806 #1C4913 #2F7A1F #42AB2B #5CCF44

Accessibility & contrast

On white

5.35
#2F7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2F7A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7A1F
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7A1F#FFFFFF#000000##FFFFFF
##2F7A1F1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F0F
Deuteranopia (green-blind)
#746828
Tritanopia (blue-blind)
#257668
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2f7a1f;
/* rgb */ color: rgb(47, 122, 31);
/* oklch */ color: oklch(51.3% 0.145 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a161',
    500: '#2f7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f7a1f;
$custom-light: #71a161;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7a1f",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 109.451,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51329,
    "c": 0.14515,
    "h": 140.5
  },
  "luminance": 0.14622
}

Semantic roles & 50–950 ramp

primary
#2F7A1F
secondary
#9B47AD
accent
#45E3C7
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2F7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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