#1F7916#1F7916

#1F7916 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.155 H 141.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#1F7916
RGBrgb(31, 121, 22)
HSLhsl(115, 69%, 28%)
HSVhsv(115, 82%, 47%)
CMYKcmyk(74.4%, 0%, 81.8%, 52.5%)
CIE-LABlab(44.27, -44.86, 43.05)
CIE-LCHlch(44.27, 62.18, 136.18°)
OKLaboklab(50.48% -0.1222 0.096)
OKLCHoklch(50.48% 0.155 141.9)
XYZxyz(7.5468, 14.0231, 3.0679)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7916 #701679
analogous
#517916 #1F7916 #16793E
triadic
#1F7916 #161F79 #79161F
tetradic
#1F7916 #165179 #701679 #793E16
square
#1F7916 #165179 #701679 #793E16
split-complementary
#1F7916 #3E1679 #791651
monochromatic
#071A05 #12450D #1F7916 #2CAD1F #3FD930

Accessibility & contrast

On white

5.52
#1F7916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#1F7916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7916
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7916#FFFFFF#000000##FFFFFF
##1F79161.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#047567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7916;
/* rgb */ color: rgb(31, 121, 22);
/* oklch */ color: oklch(50.5% 0.155 141.9);
Tailwind
colors: {
  custom: {
    50: '#6aa15c',
    500: '#1f7916',
    950: '#000000',
  },
}
SCSS
$custom: #1f7916;
$custom-light: #6aa15c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7916",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 22
  },
  "hsl": {
    "h": 114.545,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50484,
    "c": 0.15545,
    "h": 141.9
  },
  "luminance": 0.14024
}

Semantic roles & 50–950 ramp

primary
#1F7916
secondary
#A43DAE
accent
#3CECDC
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1F7916

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

Preview Lab → · Contrast checker → · Palette generator →

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