#1F7412#1F7412

#1F7412 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.152 H 141.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#1F7412
RGBrgb(31, 116, 18)
HSLhsl(112, 73%, 26%)
HSVhsv(112, 84%, 45%)
CMYKcmyk(73.3%, 0%, 84.5%, 54.5%)
CIE-LABlab(42.50, -43.37, 42.66)
CIE-LCHlch(42.50, 60.84, 135.47°)
OKLaboklab(49.01% -0.1184 0.0946)
OKLCHoklch(49.01% 0.152 141.4)
XYZxyz(6.9193, 12.8250, 2.6830)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7412 #671274
analogous
#507412 #1F7412 #127436
triadic
#1F7412 #121F74 #74121F
tetradic
#1F7412 #125074 #671274 #743612
square
#1F7412 #125074 #671274 #743612
split-complementary
#1F7412 #361274 #741250
monochromatic
#071A04 #113F0A #1F7412 #2DA91A #3CDD23

Accessibility & contrast

On white

5.89
#1F7412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#1F7412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F7412#FFFFFF#000000##FFFFFF
##1F74121.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6D621E
Tritanopia (blue-blind)
#097062
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7412;
/* rgb */ color: rgb(31, 116, 18);
/* oklch */ color: oklch(49.0% 0.152 141.4);
Tailwind
colors: {
  custom: {
    50: '#699d5a',
    500: '#1f7412',
    950: '#000000',
  },
}
SCSS
$custom: #1f7412;
$custom-light: #699d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7412",
  "rgb": {
    "r": 31,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 112.041,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.4901,
    "c": 0.15158,
    "h": 141.4
  },
  "luminance": 0.12826
}

Semantic roles & 50–950 ramp

primary
#1F7412
secondary
#9B37AB
accent
#38F0D7
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7412

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

Preview Lab → · Contrast checker → · Palette generator →

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