#2F7E1F#2F7E1F

#2F7E1F is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.150 H 140.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2F7E1F
RGBrgb(47, 126, 31)
HSLhsl(110, 61%, 31%)
HSVhsv(110, 75%, 49%)
CMYKcmyk(62.7%, 0%, 75.4%, 50.6%)
CIE-LABlab(46.48, -42.42, 42.11)
CIE-LCHlch(46.48, 59.77, 135.21°)
OKLaboklab(52.46% -0.1161 0.0952)
OKLCHoklch(52.46% 0.15 140.6)
XYZxyz(8.8800, 15.6242, 3.8439)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E1F #6E1F7E
analogous
#5E7E1F #2F7E1F #1F7E3E
triadic
#2F7E1F #1F2F7E #7E1F2F
tetradic
#2F7E1F #1F5E7E #6E1F7E #7E3E1F
square
#2F7E1F #1F5E7E #6E1F7E #7E3E1F
split-complementary
#2F7E1F #3E1F7E #7E1F5E
monochromatic
#0A1C07 #1D4D13 #2F7E1F #41AF2B #5DD146

Accessibility & contrast

On white

5.09
#2F7E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2F7E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E1F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E1F#FFFFFF#000000##FFFFFF
##2F7E1F1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#247A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e1f;
/* rgb */ color: rgb(47, 126, 31);
/* oklch */ color: oklch(52.5% 0.150 140.6);
Tailwind
colors: {
  custom: {
    50: '#72a461',
    500: '#2f7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e1f;
$custom-light: #72a461;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e1f",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 109.895,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52458,
    "c": 0.1502,
    "h": 140.6
  },
  "luminance": 0.15625
}

Semantic roles & 50–950 ramp

primary
#2F7E1F
secondary
#9F48B1
accent
#44E4C9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #2F7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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