#1F7717#1F7717

#1F7717 is a mid, vivid green. Relative luminance 0.135; OKLCH L 49.9% C 0.153 H 141.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#1F7717
RGBrgb(31, 119, 23)
HSLhsl(115, 68%, 28%)
HSVhsv(115, 81%, 47%)
CMYKcmyk(73.9%, 0%, 80.7%, 53.3%)
CIE-LABlab(43.57, -44.10, 42.04)
CIE-LCHlch(43.57, 60.93, 136.36°)
OKLaboklab(49.91% -0.1201 0.0941)
OKLCHoklch(49.91% 0.153 141.9)
XYZxyz(7.3161, 13.5460, 3.0395)
Luminance0.1355 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7717 #6F1777
analogous
#4F7717 #1F7717 #17773F
triadic
#1F7717 #171F77 #77171F
tetradic
#1F7717 #174F77 #6F1777 #773F17
square
#1F7717 #174F77 #6F1777 #773F17
split-complementary
#1F7717 #3F1777 #77174F
monochromatic
#071A05 #12440D #1F7717 #2CAA21 #3FD731

Accessibility & contrast

On white

5.66
#1F7717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#1F7717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7717
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7717#FFFFFF#000000##FFFFFF
##1F77171.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#706422
Tritanopia (blue-blind)
#057365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f7717;
/* rgb */ color: rgb(31, 119, 23);
/* oklch */ color: oklch(49.9% 0.153 141.9);
Tailwind
colors: {
  custom: {
    50: '#6a9f5c',
    500: '#1f7717',
    950: '#000000',
  },
}
SCSS
$custom: #1f7717;
$custom-light: #6a9f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7717",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 115,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49912,
    "c": 0.15258,
    "h": 141.9
  },
  "luminance": 0.13547
}

Semantic roles & 50–950 ramp

primary
#1F7717
secondary
#A33EAC
accent
#3DEADC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #1F7717

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

Preview Lab → · Contrast checker → · Palette generator →

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