#2F7412#2F7412

#2F7412 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.5% C 0.145 H 138.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2F7412
RGBrgb(47, 116, 18)
HSLhsl(102, 73%, 26%)
HSVhsv(102, 84%, 45%)
CMYKcmyk(59.5%, 0%, 84.5%, 54.5%)
CIE-LABlab(42.97, -39.47, 43.27)
CIE-LCHlch(42.97, 58.57, 132.37°)
OKLaboklab(49.54% -0.109 0.0957)
OKLCHoklch(49.54% 0.145 138.7)
XYZxyz(7.5266, 13.1381, 2.7114)
Luminance0.1314 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7412 #571274
analogous
#607412 #2F7412 #127426
triadic
#2F7412 #122F74 #74122F
tetradic
#2F7412 #126074 #571274 #742612
square
#2F7412 #126074 #571274 #742612
split-complementary
#2F7412 #261274 #741260
monochromatic
#0B1A04 #1A3F0A #2F7412 #44A91A #5ADD23

Accessibility & contrast

On white

5.79
#2F7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2F7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7412
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7412#FFFFFF#000000##FFFFFF
##2F74121.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#6F631E
Tritanopia (blue-blind)
#287062
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f7412;
/* rgb */ color: rgb(47, 116, 18);
/* oklch */ color: oklch(49.5% 0.145 138.7);
Tailwind
colors: {
  custom: {
    50: '#719d5a',
    500: '#2f7412',
    950: '#000000',
  },
}
SCSS
$custom: #2f7412;
$custom-light: #719d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7412",
  "rgb": {
    "r": 47,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 102.245,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.49535,
    "c": 0.14503,
    "h": 138.7
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#2F7412
secondary
#8837AB
accent
#38F0B9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2F7412

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

Preview Lab → · Contrast checker → · Palette generator →

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