#1F8417#1F8417

#1F8417 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.7% C 0.168 H 142.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#1F8417
RGBrgb(31, 132, 23)
HSLhsl(116, 70%, 30%)
HSVhsv(116, 83%, 52%)
CMYKcmyk(76.5%, 0%, 82.6%, 48.2%)
CIE-LABlab(48.08, -48.54, 46.34)
CIE-LCHlch(48.08, 67.11, 136.33°)
OKLaboklab(53.65% -0.1321 0.103)
OKLCHoklch(53.65% 0.168 142.1)
XYZxyz(8.9705, 16.8547, 3.5910)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8417 #7C1784
analogous
#568417 #1F8417 #178445
triadic
#1F8417 #171F84 #84171F
tetradic
#1F8417 #175684 #7C1784 #844517
square
#1F8417 #175684 #7C1784 #844517
split-complementary
#1F8417 #451784 #841756
monochromatic
#071C05 #13500E #1F8417 #2BB820 #45DC39

Accessibility & contrast

On white

4.80
#1F8417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#1F8417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8417
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8417#FFFFFF#000000##FFFFFF
##1F84171.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#008070
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f8417;
/* rgb */ color: rgb(31, 132, 23);
/* oklch */ color: oklch(53.7% 0.168 142.1);
Tailwind
colors: {
  custom: {
    50: '#6da95e',
    500: '#1f8417',
    950: '#000000',
  },
}
SCSS
$custom: #1f8417;
$custom-light: #6da95e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8417",
  "rgb": {
    "r": 31,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 115.596,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53652,
    "c": 0.16757,
    "h": 142.1
  },
  "luminance": 0.16856
}

Semantic roles & 50–950 ramp

primary
#1F8417
secondary
#AF3FB8
accent
#3BEDE0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F8417

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

Preview Lab → · Contrast checker → · Palette generator →

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