#1F871E#1F871E

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

Color values

HEX#1F871E
RGBrgb(31, 135, 30)
HSLhsl(119, 64%, 32%)
HSVhsv(119, 78%, 53%)
CMYKcmyk(77%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.14, -49.06, 45.02)
CIE-LCHlch(49.14, 66.59, 137.46°)
OKLaboklab(54.55% -0.1332 0.1013)
OKLCHoklch(54.55% 0.167 142.8)
XYZxyz(9.4628, 17.7119, 4.1481)
Luminance0.1771 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F871E #861E87
analogous
#53871E #1F871E #1E8752
triadic
#1F871E #1E1F87 #871E1F
tetradic
#1F871E #1E5387 #861E87 #87521E
square
#1F871E #1E5387 #861E87 #87521E
split-complementary
#1F871E #521E87 #871E53
monochromatic
#082308 #145513 #1F871E #2AB929 #4AD749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F871E#FFFFFF#000000##FFFFFF
##1F871E1.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)
#8A7A06
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f871e;
/* rgb */ color: rgb(31, 135, 30);
/* oklch */ color: oklch(54.6% 0.167 142.8);
Tailwind
colors: {
  custom: {
    50: '#6eab62',
    500: '#1f871e',
    950: '#000000',
  },
}
SCSS
$custom: #1f871e;
$custom-light: #6eab62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f871e",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 119.429,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54552,
    "c": 0.16736,
    "h": 142.8
  },
  "luminance": 0.17713
}

Semantic roles & 50–950 ramp

primary
#1F871E
secondary
#B848B9
accent
#41E7E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F871E

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

Preview Lab → · Contrast checker → · Palette generator →

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