#2F7B1F#2F7B1F

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

Color values

HEX#2F7B1F
RGBrgb(47, 123, 31)
HSLhsl(110, 60%, 30%)
HSVhsv(110, 75%, 48%)
CMYKcmyk(61.8%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.45, -41.27, 41.07)
CIE-LCHlch(45.45, 58.22, 135.14°)
OKLaboklab(51.61% -0.113 0.0931)
OKLCHoklch(51.61% 0.146 140.5)
XYZxyz(8.5022, 14.8684, 3.7179)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7B1F #6B1F7B
analogous
#5D7B1F #2F7B1F #1F7B3D
triadic
#2F7B1F #1F2F7B #7B1F2F
tetradic
#2F7B1F #1F5D7B #6B1F7B #7B3D1F
square
#2F7B1F #1F5D7B #6B1F7B #7B3D1F
split-complementary
#2F7B1F #3D1F7B #7B1F5D
monochromatic
#0A1906 #1C4A13 #2F7B1F #42AC2B #5DD044

Accessibility & contrast

On white

5.28
#2F7B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2F7B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7B1F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7B1F#FFFFFF#000000##FFFFFF
##2F7B1F1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#756928
Tritanopia (blue-blind)
#247769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f7b1f;
/* rgb */ color: rgb(47, 123, 31);
/* oklch */ color: oklch(51.6% 0.146 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a261',
    500: '#2f7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f7b1f;
$custom-light: #71a261;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7b1f",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 109.565,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51611,
    "c": 0.14643,
    "h": 140.5
  },
  "luminance": 0.14869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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