#1F871A#1F871A

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

Color values

HEX#1F871A
RGBrgb(31, 135, 26)
HSLhsl(117, 68%, 32%)
HSVhsv(117, 81%, 53%)
CMYKcmyk(77%, 0%, 80.7%, 47.1%)
CIE-LABlab(49.12, -49.35, 46.37)
CIE-LCHlch(49.12, 67.72, 136.78°)
OKLaboklab(54.53% -0.1342 0.1036)
OKLCHoklch(54.53% 0.17 142.3)
XYZxyz(9.4149, 17.6927, 3.8959)
Luminance0.1769 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F871A #821A87
analogous
#56871A #1F871A #1A874C
triadic
#1F871A #1A1F87 #871A1F
tetradic
#1F871A #1A5687 #821A87 #874C1A
square
#1F871A #1A5687 #821A87 #874C1A
split-complementary
#1F871A #4C1A87 #871A56
monochromatic
#072006 #135410 #1F871A #2BBA24 #48DA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F871A#FFFFFF#000000##FFFFFF
##1F871A1.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)
#7F7227
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f871a;
/* rgb */ color: rgb(31, 135, 26);
/* oklch */ color: oklch(54.5% 0.170 142.3);
Tailwind
colors: {
  custom: {
    50: '#6eab60',
    500: '#1f871a',
    950: '#000000',
  },
}
SCSS
$custom: #1f871a;
$custom-light: #6eab60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f871a",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 117.248,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54525,
    "c": 0.1695,
    "h": 142.3
  },
  "luminance": 0.17694
}

Semantic roles & 50–950 ramp

primary
#1F871A
secondary
#B542BA
accent
#3DEBE3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F871A

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

Preview Lab → · Contrast checker → · Palette generator →

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