#2F7F12#2F7F12

#2F7F12 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.158 H 139.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2F7F12
RGBrgb(47, 127, 18)
HSLhsl(104, 75%, 28%)
HSVhsv(104, 86%, 50%)
CMYKcmyk(63%, 0%, 85.8%, 50.2%)
CIE-LABlab(46.75, -43.66, 46.72)
CIE-LCHlch(46.75, 63.94, 133.06°)
OKLaboklab(52.66% -0.1202 0.103)
OKLCHoklch(52.66% 0.158 139.4)
XYZxyz(8.8705, 15.8259, 3.1594)
Luminance0.1583 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7F12 #62127F
analogous
#657F12 #2F7F12 #127F2C
triadic
#2F7F12 #122F7F #7F122F
tetradic
#2F7F12 #12657F #62127F #7F2C12
square
#2F7F12 #12657F #62127F #7F2C12
split-complementary
#2F7F12 #2C127F #7F1265
monochromatic
#0A1B04 #1B490A #2F7F12 #43B51A #5BE12B

Accessibility & contrast

On white

5.04
#2F7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2F7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7F12
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7F12#FFFFFF#000000##FFFFFF
##2F7F121.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#257A6C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f7f12;
/* rgb */ color: rgb(47, 127, 18);
/* oklch */ color: oklch(52.7% 0.158 139.4);
Tailwind
colors: {
  custom: {
    50: '#73a55c',
    500: '#2f7f12',
    950: '#000000',
  },
}
SCSS
$custom: #2f7f12;
$custom-light: #73a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7f12",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 104.037,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52656,
    "c": 0.15825,
    "h": 139.4
  },
  "luminance": 0.15827
}

Semantic roles & 50–950 ramp

primary
#2F7F12
secondary
#9438B5
accent
#36F2C0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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