#1F7917#1F7917

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

Color values

HEX#1F7917
RGBrgb(31, 121, 23)
HSLhsl(115, 68%, 28%)
HSVhsv(115, 81%, 47%)
CMYKcmyk(74.4%, 0%, 81%, 52.5%)
CIE-LABlab(44.27, -44.79, 42.72)
CIE-LCHlch(44.27, 61.90, 136.36°)
OKLaboklab(50.49% -0.122 0.0955)
OKLCHoklch(50.49% 0.155 142)
XYZxyz(7.5567, 14.0271, 3.1197)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7917 #711779
analogous
#507917 #1F7917 #177940
triadic
#1F7917 #171F79 #79171F
tetradic
#1F7917 #175079 #711779 #794017
square
#1F7917 #175079 #711779 #794017
split-complementary
#1F7917 #401779 #791750
monochromatic
#071A05 #12460D #1F7917 #2CAC21 #40D832

Accessibility & contrast

On white

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

On black

3.81
#1F7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F7917#FFFFFF#000000##FFFFFF
##1F79171.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7917;
/* rgb */ color: rgb(31, 121, 23);
/* oklch */ color: oklch(50.5% 0.155 142.0);
Tailwind
colors: {
  custom: {
    50: '#6aa15d',
    500: '#1f7917',
    950: '#000000',
  },
}
SCSS
$custom: #1f7917;
$custom-light: #6aa15d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7917",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 115.102,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50491,
    "c": 0.15493,
    "h": 142
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#1F7917
secondary
#A53EAE
accent
#3DEBDD
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1F7917

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

Preview Lab → · Contrast checker → · Palette generator →

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