#1F8E17#1F8E17

#1F8E17 is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.5% C 0.179 H 142.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#1F8E17
RGBrgb(31, 142, 23)
HSLhsl(116, 72%, 32%)
HSVhsv(116, 84%, 56%)
CMYKcmyk(78.2%, 0%, 83.8%, 44.3%)
CIE-LABlab(51.49, -51.83, 49.53)
CIE-LCHlch(51.49, 71.69, 136.30°)
OKLaboklab(56.49% -0.141 0.1097)
OKLCHoklch(56.49% 0.179 142.1)
XYZxyz(10.3921, 19.6980, 4.0648)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E17 #86178E
analogous
#5B8E17 #1F8E17 #178E4A
triadic
#1F8E17 #171F8E #8E171F
tetradic
#1F8E17 #175B8E #86178E #8E4A17
square
#1F8E17 #175B8E #86178E #8E4A17
split-complementary
#1F8E17 #4A178E #8E175B
monochromatic
#082506 #14590E #1F8E17 #2AC320 #4AE03F

Accessibility & contrast

On white

4.25
#1F8E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#1F8E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E17
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E17#FFFFFF#000000##000000
##1F8E171.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#857826
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e17;
/* rgb */ color: rgb(31, 142, 23);
/* oklch */ color: oklch(56.5% 0.179 142.1);
Tailwind
colors: {
  custom: {
    50: '#70b060',
    500: '#1f8e17',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e17;
$custom-light: #70b060;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e17",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 115.966,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56493,
    "c": 0.17869,
    "h": 142.1
  },
  "luminance": 0.19699
}

Semantic roles & 50–950 ramp

primary
#1F8E17
secondary
#B840C0
accent
#39EFE3
background
#F7FBF5
surface
#EDF6EA
border
#C8D0C6
text
#091105
muted
#7B8079

Preview Lab

Preview with #1F8E17

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

Preview Lab → · Contrast checker → · Palette generator →

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