#2F7612#2F7612

#2F7612 is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.1% C 0.147 H 138.9°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#2F7612
RGBrgb(47, 118, 18)
HSLhsl(103, 74%, 27%)
HSVhsv(103, 85%, 46%)
CMYKcmyk(60.2%, 0%, 84.7%, 53.7%)
CIE-LABlab(43.66, -40.25, 43.91)
CIE-LCHlch(43.66, 59.56, 132.51°)
OKLaboklab(50.1% -0.1111 0.097)
OKLCHoklch(50.1% 0.147 138.9)
XYZxyz(7.7596, 13.6042, 2.7891)
Luminance0.1361 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7612 #591276
analogous
#617612 #2F7612 #127627
triadic
#2F7612 #122F76 #76122F
tetradic
#2F7612 #126176 #591276 #762712
square
#2F7612 #126176 #591276 #762712
split-complementary
#2F7612 #271276 #761261
monochromatic
#0B1B04 #1A410A #2F7612 #44AB1A #5ADE25

Accessibility & contrast

On white

5.64
#2F7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#2F7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7612
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7612#FFFFFF#000000##FFFFFF
##2F76121.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#71651E
Tritanopia (blue-blind)
#277264
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2f7612;
/* rgb */ color: rgb(47, 118, 18);
/* oklch */ color: oklch(50.1% 0.147 138.9);
Tailwind
colors: {
  custom: {
    50: '#719e5a',
    500: '#2f7612',
    950: '#000000',
  },
}
SCSS
$custom: #2f7612;
$custom-light: #719e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7612",
  "rgb": {
    "r": 47,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 102.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50104,
    "c": 0.14748,
    "h": 138.9
  },
  "luminance": 0.13605
}

Semantic roles & 50–950 ramp

primary
#2F7612
secondary
#8B37AD
accent
#38F0BB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7612

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

Preview Lab → · Contrast checker → · Palette generator →

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