#1F7617#1F7617

#1F7617 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.6% C 0.151 H 141.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#1F7617
RGBrgb(31, 118, 23)
HSLhsl(115, 67%, 28%)
HSVhsv(115, 81%, 46%)
CMYKcmyk(73.7%, 0%, 80.5%, 53.7%)
CIE-LABlab(43.23, -43.74, 41.71)
CIE-LCHlch(43.23, 60.44, 136.37°)
OKLaboklab(49.62% -0.1192 0.0934)
OKLCHoklch(49.62% 0.151 141.9)
XYZxyz(7.1978, 13.3092, 3.0001)
Luminance0.1331 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7617 #6E1776
analogous
#4F7617 #1F7617 #17763E
triadic
#1F7617 #171F76 #76171F
tetradic
#1F7617 #174F76 #6E1776 #763E17
square
#1F7617 #174F76 #6E1776 #763E17
split-complementary
#1F7617 #3E1776 #76174F
monochromatic
#071A05 #12430D #1F7617 #2CA921 #3FD731

Accessibility & contrast

On white

5.73
#1F7617 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#1F7617 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7617
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7617#FFFFFF#000000##FFFFFF
##1F76171.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A01
Deuteranopia (green-blind)
#6F6322
Tritanopia (blue-blind)
#067264
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #1f7617;
/* rgb */ color: rgb(31, 118, 23);
/* oklch */ color: oklch(49.6% 0.151 141.9);
Tailwind
colors: {
  custom: {
    50: '#6a9e5c',
    500: '#1f7617',
    950: '#000000',
  },
}
SCSS
$custom: #1f7617;
$custom-light: #6a9e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7617",
  "rgb": {
    "r": 31,
    "g": 118,
    "b": 23
  },
  "hsl": {
    "h": 114.947,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49622,
    "c": 0.15139,
    "h": 141.9
  },
  "luminance": 0.1331
}

Semantic roles & 50–950 ramp

primary
#1F7617
secondary
#A23EAB
accent
#3EEADC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7617

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

Preview Lab → · Contrast checker → · Palette generator →

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