#1F8F17#1F8F17

#1F8F17 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.8% C 0.180 H 142.1°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#1F8F17
RGBrgb(31, 143, 23)
HSLhsl(116, 72%, 33%)
HSVhsv(116, 84%, 56%)
CMYKcmyk(78.3%, 0%, 83.9%, 43.9%)
CIE-LABlab(51.83, -52.16, 49.84)
CIE-LCHlch(51.83, 72.14, 136.30°)
OKLaboklab(56.78% -0.1419 0.1104)
OKLCHoklch(56.78% 0.18 142.1)
XYZxyz(10.5416, 19.9969, 4.1147)
Luminance0.2000 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F17 #87178F
analogous
#5B8F17 #1F8F17 #178F4B
triadic
#1F8F17 #171F8F #8F171F
tetradic
#1F8F17 #175B8F #87178F #8F4B17
square
#1F8F17 #175B8F #87178F #8F4B17
split-complementary
#1F8F17 #4B178F #8F175B
monochromatic
#082606 #145A0F #1F8F17 #2AC41F #4BE040

Accessibility & contrast

On white

4.20
#1F8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#1F8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F17
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F17#FFFFFF#000000##000000
##1F8F171.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f17;
/* rgb */ color: rgb(31, 143, 23);
/* oklch */ color: oklch(56.8% 0.180 142.1);
Tailwind
colors: {
  custom: {
    50: '#70b160',
    500: '#1f8f17',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f17;
$custom-light: #70b160;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f17",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 116,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56776,
    "c": 0.17978,
    "h": 142.1
  },
  "luminance": 0.19998
}

Semantic roles & 50–950 ramp

primary
#1F8F17
secondary
#B841C1
accent
#39EFE3
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #1F8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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