#1F7017#1F7017

#1F7017 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.144 H 141.8°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#1F7017
RGBrgb(31, 112, 23)
HSLhsl(115, 66%, 26%)
HSVhsv(115, 79%, 44%)
CMYKcmyk(72.3%, 0%, 79.5%, 56.1%)
CIE-LABlab(41.12, -41.60, 39.65)
CIE-LCHlch(41.12, 57.47, 136.38°)
OKLaboklab(47.88% -0.1134 0.0891)
OKLCHoklch(47.88% 0.144 141.8)
XYZxyz(6.5135, 11.9408, 2.7720)
Luminance0.1194 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7017 #681770
analogous
#4C7017 #1F7017 #17703C
triadic
#1F7017 #171F70 #70171F
tetradic
#1F7017 #174C70 #681770 #703C17
square
#1F7017 #174C70 #681770 #703C17
split-complementary
#1F7017 #3C1770 #70174C
monochromatic
#071905 #113D0D #1F7017 #2DA321 #3CD42D

Accessibility & contrast

On white

6.20
#1F7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#1F7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7017
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7017#FFFFFF#000000##FFFFFF
##1F70171.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736504
Deuteranopia (green-blind)
#695F21
Tritanopia (blue-blind)
#0B6C5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #1f7017;
/* rgb */ color: rgb(31, 112, 23);
/* oklch */ color: oklch(47.9% 0.144 141.8);
Tailwind
colors: {
  custom: {
    50: '#689a5b',
    500: '#1f7017',
    950: '#000000',
  },
}
SCSS
$custom: #1f7017;
$custom-light: #689a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7017",
  "rgb": {
    "r": 31,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 114.607,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.47877,
    "c": 0.1442,
    "h": 141.8
  },
  "luminance": 0.11942
}

Semantic roles & 50–950 ramp

primary
#1F7017
secondary
#9C3DA6
accent
#3FE9DA
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7017

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

Preview Lab → · Contrast checker → · Palette generator →

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