#1F871B#1F871B

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

Color values

HEX#1F871B
RGBrgb(31, 135, 27)
HSLhsl(118, 67%, 32%)
HSVhsv(118, 80%, 53%)
CMYKcmyk(77%, 0%, 80%, 47.1%)
CIE-LABlab(49.13, -49.28, 46.05)
CIE-LCHlch(49.13, 67.45, 136.94°)
OKLaboklab(54.53% -0.134 0.103)
OKLCHoklch(54.53% 0.169 142.4)
XYZxyz(9.4263, 17.6973, 3.9558)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F871B #831B87
analogous
#55871B #1F871B #1B874D
triadic
#1F871B #1B1F87 #871B1F
tetradic
#1F871B #1B5587 #831B87 #874D1B
square
#1F871B #1B5587 #831B87 #874D1B
split-complementary
#1F871B #4D1B87 #871B55
monochromatic
#082107 #135411 #1F871B #2BBA25 #49D943

Accessibility & contrast

On white

4.63
#1F871B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F871B
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F871B#FFFFFF#000000##FFFFFF
##1F871B1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f871b;
/* rgb */ color: rgb(31, 135, 27);
/* oklch */ color: oklch(54.5% 0.169 142.4);
Tailwind
colors: {
  custom: {
    50: '#6eab60',
    500: '#1f871b',
    950: '#000000',
  },
}
SCSS
$custom: #1f871b;
$custom-light: #6eab60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f871b",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 117.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54532,
    "c": 0.16899,
    "h": 142.4
  },
  "luminance": 0.17698
}

Semantic roles & 50–950 ramp

primary
#1F871B
secondary
#B644BA
accent
#3EEAE3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F871B

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

Preview Lab → · Contrast checker → · Palette generator →

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