#1F7F17#1F7F17

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

Color values

HEX#1F7F17
RGBrgb(31, 127, 23)
HSLhsl(115, 69%, 29%)
HSVhsv(115, 82%, 50%)
CMYKcmyk(75.6%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.35, -46.86, 44.71)
CIE-LCHlch(46.35, 64.77, 136.34°)
OKLaboklab(52.22% -0.1276 0.0996)
OKLCHoklch(52.22% 0.162 142)
XYZxyz(8.3086, 15.5310, 3.3703)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F17 #77177F
analogous
#537F17 #1F7F17 #177F43
triadic
#1F7F17 #171F7F #7F171F
tetradic
#1F7F17 #17537F #77177F #7F4317
square
#1F7F17 #17537F #77177F #7F4317
split-complementary
#1F7F17 #43177F #7F1753
monochromatic
#061A05 #124B0E #1F7F17 #2CB320 #43DB36

Accessibility & contrast

On white

5.11
#1F7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#1F7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F17
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F17#FFFFFF#000000##FFFFFF
##1F7F171.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f17;
/* rgb */ color: rgb(31, 127, 23);
/* oklch */ color: oklch(52.2% 0.162 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ca55d',
    500: '#1f7f17',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f17;
$custom-light: #6ca55d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f17",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 115.385,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52219,
    "c": 0.16189,
    "h": 142
  },
  "luminance": 0.15532
}

Semantic roles & 50–950 ramp

primary
#1F7F17
secondary
#AB3EB4
accent
#3CECDF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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