#1F7417#1F7417

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

Color values

HEX#1F7417
RGBrgb(31, 116, 23)
HSLhsl(115, 67%, 27%)
HSVhsv(115, 80%, 45%)
CMYKcmyk(73.3%, 0%, 80.2%, 54.5%)
CIE-LABlab(42.53, -43.04, 41.03)
CIE-LCHlch(42.53, 59.46, 136.37°)
OKLaboklab(49.04% -0.1173 0.092)
OKLCHoklch(49.04% 0.149 141.9)
XYZxyz(6.9647, 12.8432, 2.9224)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7417 #6C1774
analogous
#4D7417 #1F7417 #17743E
triadic
#1F7417 #171F74 #74171F
tetradic
#1F7417 #174D74 #6C1774 #743E17
square
#1F7417 #174D74 #6C1774 #743E17
split-complementary
#1F7417 #3E1774 #74174D
monochromatic
#071A05 #11410D #1F7417 #2DA721 #3ED630

Accessibility & contrast

On white

5.88
#1F7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7417
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7417#FFFFFF#000000##FFFFFF
##1F74171.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776802
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#077062
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7417;
/* rgb */ color: rgb(31, 116, 23);
/* oklch */ color: oklch(49.0% 0.149 141.9);
Tailwind
colors: {
  custom: {
    50: '#699d5c',
    500: '#1f7417',
    950: '#000000',
  },
}
SCSS
$custom: #1f7417;
$custom-light: #699d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7417",
  "rgb": {
    "r": 31,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 114.839,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49042,
    "c": 0.14901,
    "h": 141.9
  },
  "luminance": 0.12844
}

Semantic roles & 50–950 ramp

primary
#1F7417
secondary
#A03DA9
accent
#3EEADB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7417

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

Preview Lab → · Contrast checker → · Palette generator →

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