#2F7C1F#2F7C1F

#2F7C1F is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.148 H 140.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2F7C1F
RGBrgb(47, 124, 31)
HSLhsl(110, 60%, 30%)
HSVhsv(110, 75%, 49%)
CMYKcmyk(62.1%, 0%, 75%, 51.4%)
CIE-LABlab(45.80, -41.66, 41.42)
CIE-LCHlch(45.80, 58.74, 135.16°)
OKLaboklab(51.89% -0.1141 0.0938)
OKLCHoklch(51.89% 0.148 140.6)
XYZxyz(8.6269, 15.1178, 3.7595)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7C1F #6C1F7C
analogous
#5E7C1F #2F7C1F #1F7C3D
triadic
#2F7C1F #1F2F7C #7C1F2F
tetradic
#2F7C1F #1F5E7C #6C1F7C #7C3D1F
square
#2F7C1F #1F5E7C #6C1F7C #7C3D1F
split-complementary
#2F7C1F #3D1F7C #7C1F5E
monochromatic
#0A1A07 #1C4B13 #2F7C1F #42AD2B #5DD045

Accessibility & contrast

On white

5.22
#2F7C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2F7C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7C1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7C1F#FFFFFF#000000##FFFFFF
##2F7C1F1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#24786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7c1f;
/* rgb */ color: rgb(47, 124, 31);
/* oklch */ color: oklch(51.9% 0.148 140.6);
Tailwind
colors: {
  custom: {
    50: '#72a361',
    500: '#2f7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f7c1f;
$custom-light: #72a361;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7c1f",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 109.677,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51894,
    "c": 0.14769,
    "h": 140.6
  },
  "luminance": 0.15119
}

Semantic roles & 50–950 ramp

primary
#2F7C1F
secondary
#9D48AF
accent
#45E3C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2F7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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