#1F871F#1F871F

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

Color values

HEX#1F871F
RGBrgb(31, 135, 31)
HSLhsl(120, 63%, 33%)
HSVhsv(120, 77%, 53%)
CMYKcmyk(77%, 0%, 77%, 47.1%)
CIE-LABlab(49.15, -48.98, 44.67)
CIE-LCHlch(49.15, 66.29, 137.64°)
OKLaboklab(54.56% -0.133 0.1007)
OKLCHoklch(54.56% 0.167 142.9)
XYZxyz(9.4758, 17.7171, 4.2164)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F871F #871F87
analogous
#53871F #1F871F #1F8753
triadic
#1F871F #1F1F87 #871F1F
tetradic
#1F871F #1F5387 #871F87 #87531F
square
#1F871F #1F5387 #871F87 #87531F
split-complementary
#1F871F #531F87 #871F53
monochromatic
#082308 #145514 #1F871F #2AB92A #4BD64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F871F#FFFFFF#000000##FFFFFF
##1F871F1.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)
#8A7A09
Deuteranopia (green-blind)
#7E722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f871f;
/* rgb */ color: rgb(31, 135, 31);
/* oklch */ color: oklch(54.6% 0.167 142.9);
Tailwind
colors: {
  custom: {
    50: '#6eab62',
    500: '#1f871f',
    950: '#000000',
  },
}
SCSS
$custom: #1f871f;
$custom-light: #6eab62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f871f",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54559,
    "c": 0.16679,
    "h": 142.9
  },
  "luminance": 0.17718
}

Semantic roles & 50–950 ramp

primary
#1F871F
secondary
#B84AB8
accent
#42E6E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F871F

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

Preview Lab → · Contrast checker → · Palette generator →

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