#2F7E12#2F7E12

#2F7E12 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.157 H 139.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2F7E12
RGBrgb(47, 126, 18)
HSLhsl(104, 75%, 28%)
HSVhsv(104, 86%, 49%)
CMYKcmyk(62.7%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.40, -43.28, 46.41)
CIE-LCHlch(46.40, 63.46, 133.00°)
OKLaboklab(52.37% -0.1192 0.1023)
OKLCHoklch(52.37% 0.157 139.4)
XYZxyz(8.7419, 15.5689, 3.1166)
Luminance0.1557 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7E12 #61127E
analogous
#657E12 #2F7E12 #127E2B
triadic
#2F7E12 #122F7E #7E122F
tetradic
#2F7E12 #12657E #61127E #7E2B12
square
#2F7E12 #12657E #61127E #7E2B12
split-complementary
#2F7E12 #2B127E #7E1265
monochromatic
#0A1B04 #1B480A #2F7E12 #43B41A #5BE12A

Accessibility & contrast

On white

5.10
#2F7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2F7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7E12
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7E12#FFFFFF#000000##FFFFFF
##2F7E121.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786C20
Tritanopia (blue-blind)
#25796B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f7e12;
/* rgb */ color: rgb(47, 126, 18);
/* oklch */ color: oklch(52.4% 0.157 139.4);
Tailwind
colors: {
  custom: {
    50: '#73a45b',
    500: '#2f7e12',
    950: '#000000',
  },
}
SCSS
$custom: #2f7e12;
$custom-light: #73a45b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7e12",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 103.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52373,
    "c": 0.15708,
    "h": 139.4
  },
  "luminance": 0.1557
}

Semantic roles & 50–950 ramp

primary
#2F7E12
secondary
#9338B4
accent
#36F2BF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #2F7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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