#2F7112#2F7112

#2F7112 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.7% C 0.141 H 138.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#2F7112
RGBrgb(47, 113, 18)
HSLhsl(102, 73%, 26%)
HSVhsv(102, 84%, 44%)
CMYKcmyk(58.4%, 0%, 84.1%, 55.7%)
CIE-LABlab(41.93, -38.29, 42.31)
CIE-LCHlch(41.93, 57.06, 132.15°)
OKLaboklab(48.68% -0.1058 0.0937)
OKLCHoklch(48.68% 0.141 138.5)
XYZxyz(7.1863, 12.4577, 2.5980)
Luminance0.1246 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7112 #541271
analogous
#5E7112 #2F7112 #127124
triadic
#2F7112 #122F71 #71122F
tetradic
#2F7112 #125E71 #541271 #712412
square
#2F7112 #125E71 #541271 #712412
split-complementary
#2F7112 #241271 #71125E
monochromatic
#0B1A04 #193C0A #2F7112 #45A61A #5BDB23

Accessibility & contrast

On white

6.01
#2F7112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2F7112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7112
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7112#FFFFFF#000000##FFFFFF
##2F71121.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6C611D
Tritanopia (blue-blind)
#296D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f7112;
/* rgb */ color: rgb(47, 113, 18);
/* oklch */ color: oklch(48.7% 0.141 138.5);
Tailwind
colors: {
  custom: {
    50: '#709a59',
    500: '#2f7112',
    950: '#000000',
  },
}
SCSS
$custom: #2f7112;
$custom-light: #709a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7112",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 101.684,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.48679,
    "c": 0.14132,
    "h": 138.5
  },
  "luminance": 0.12458
}

Semantic roles & 50–950 ramp

primary
#2F7112
secondary
#8537A8
accent
#39EFB7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7112

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

Preview Lab → · Contrast checker → · Palette generator →

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