#1F871C#1F871C

#1F871C is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.5% C 0.168 H 142.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#1F871C
RGBrgb(31, 135, 28)
HSLhsl(118, 66%, 32%)
HSVhsv(118, 79%, 53%)
CMYKcmyk(77%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.13, -49.21, 45.71)
CIE-LCHlch(49.13, 67.17, 137.11°)
OKLaboklab(54.54% -0.1337 0.1025)
OKLCHoklch(54.54% 0.168 142.5)
XYZxyz(9.4381, 17.7020, 4.0178)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F871C #841C87
analogous
#55871C #1F871C #1C874F
triadic
#1F871C #1C1F87 #871C1F
tetradic
#1F871C #1C5587 #841C87 #874F1C
square
#1F871C #1C5587 #841C87 #874F1C
split-complementary
#1F871C #4F1C87 #871C55
monochromatic
#082207 #135411 #1F871C #2BBA27 #49D845

Accessibility & contrast

On white

4.62
#1F871C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#1F871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F871C
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F871C#FFFFFF#000000##FFFFFF
##1F871C1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A02
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f871c;
/* rgb */ color: rgb(31, 135, 28);
/* oklch */ color: oklch(54.5% 0.168 142.5);
Tailwind
colors: {
  custom: {
    50: '#6eab61',
    500: '#1f871c',
    950: '#000000',
  },
}
SCSS
$custom: #1f871c;
$custom-light: #6eab61;
$custom-dark: #000000;
JSON
{
  "hex": "#1f871c",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 118.318,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54538,
    "c": 0.16846,
    "h": 142.5
  },
  "luminance": 0.17703
}

Semantic roles & 50–950 ramp

primary
#1F871C
secondary
#B745BA
accent
#3FE9E4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F871C

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

Preview Lab → · Contrast checker → · Palette generator →

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