#2F7D1F#2F7D1F

#2F7D1F is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.149 H 140.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2F7D1F
RGBrgb(47, 125, 31)
HSLhsl(110, 60%, 31%)
HSVhsv(110, 75%, 49%)
CMYKcmyk(62.4%, 0%, 75.2%, 51%)
CIE-LABlab(46.14, -42.04, 41.76)
CIE-LCHlch(46.14, 59.26, 135.19°)
OKLaboklab(52.18% -0.1151 0.0945)
OKLCHoklch(52.18% 0.149 140.6)
XYZxyz(8.7528, 15.3697, 3.8014)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7D1F #6D1F7D
analogous
#5E7D1F #2F7D1F #1F7D3E
triadic
#2F7D1F #1F2F7D #7D1F2F
tetradic
#2F7D1F #1F5E7D #6D1F7D #7D3E1F
square
#2F7D1F #1F5E7D #6D1F7D #7D3E1F
split-complementary
#2F7D1F #3E1F7D #7D1F5E
monochromatic
#0A1B07 #1D4C13 #2F7D1F #41AE2B #5DD145

Accessibility & contrast

On white

5.15
#2F7D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2F7D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7D1F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7D1F#FFFFFF#000000##FFFFFF
##2F7D1F1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#24796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f7d1f;
/* rgb */ color: rgb(47, 125, 31);
/* oklch */ color: oklch(52.2% 0.149 140.6);
Tailwind
colors: {
  custom: {
    50: '#72a361',
    500: '#2f7d1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f7d1f;
$custom-light: #72a361;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7d1f",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 109.787,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52176,
    "c": 0.14895,
    "h": 140.6
  },
  "luminance": 0.1537
}

Semantic roles & 50–950 ramp

primary
#2F7D1F
secondary
#9E48B0
accent
#44E3C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2F7D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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