#1F8517#1F8517

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

Color values

HEX#1F8517
RGBrgb(31, 133, 23)
HSLhsl(116, 71%, 31%)
HSVhsv(116, 83%, 52%)
CMYKcmyk(76.7%, 0%, 82.7%, 47.8%)
CIE-LABlab(48.42, -48.88, 46.66)
CIE-LCHlch(48.42, 67.58, 136.33°)
OKLaboklab(53.94% -0.133 0.1037)
OKLCHoklch(53.94% 0.169 142.1)
XYZxyz(9.1067, 17.1272, 3.6364)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8517 #7D1785
analogous
#568517 #1F8517 #178546
triadic
#1F8517 #171F85 #85171F
tetradic
#1F8517 #175685 #7D1785 #854617
square
#1F8517 #175685 #7D1785 #854617
split-complementary
#1F8517 #461785 #851756
monochromatic
#071D05 #13510E #1F8517 #2BB920 #45DD3A

Accessibility & contrast

On white

4.75
#1F8517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#1F8517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8517
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8517#FFFFFF#000000##FFFFFF
##1F85171.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#008171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f8517;
/* rgb */ color: rgb(31, 133, 23);
/* oklch */ color: oklch(53.9% 0.169 142.1);
Tailwind
colors: {
  custom: {
    50: '#6daa5e',
    500: '#1f8517',
    950: '#000000',
  },
}
SCSS
$custom: #1f8517;
$custom-light: #6daa5e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8517",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 115.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53937,
    "c": 0.1687,
    "h": 142.1
  },
  "luminance": 0.17128
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F8517

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

Preview Lab → · Contrast checker → · Palette generator →

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