#1F7512#1F7512

#1F7512 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.3% C 0.153 H 141.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#1F7512
RGBrgb(31, 117, 18)
HSLhsl(112, 73%, 26%)
HSVhsv(112, 85%, 46%)
CMYKcmyk(73.5%, 0%, 84.6%, 54.1%)
CIE-LABlab(42.85, -43.72, 42.99)
CIE-LCHlch(42.85, 61.32, 135.49°)
OKLaboklab(49.3% -0.1194 0.0953)
OKLCHoklch(49.3% 0.153 141.4)
XYZxyz(7.0352, 13.0568, 2.7216)
Luminance0.1306 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7512 #681275
analogous
#517512 #1F7512 #127537
triadic
#1F7512 #121F75 #75121F
tetradic
#1F7512 #125175 #681275 #753712
square
#1F7512 #125175 #681275 #753712
split-complementary
#1F7512 #371275 #751251
monochromatic
#071B04 #11400A #1F7512 #2DAA1A #3CDD24

Accessibility & contrast

On white

5.81
#1F7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#1F7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7512
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7512#FFFFFF#000000##FFFFFF
##1F75121.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7512;
/* rgb */ color: rgb(31, 117, 18);
/* oklch */ color: oklch(49.3% 0.153 141.4);
Tailwind
colors: {
  custom: {
    50: '#6a9e5a',
    500: '#1f7512',
    950: '#000000',
  },
}
SCSS
$custom: #1f7512;
$custom-light: #6a9e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7512",
  "rgb": {
    "r": 31,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 112.121,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49301,
    "c": 0.15275,
    "h": 141.4
  },
  "luminance": 0.13058
}

Semantic roles & 50–950 ramp

primary
#1F7512
secondary
#9C37AC
accent
#38F0D8
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7512

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

Preview Lab → · Contrast checker → · Palette generator →

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