#1F971F#1F971F

#1F971F is a mid, vivid green. Relative luminance 0.225; OKLCH L 59.1% C 0.185 H 142.8°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#1F971F
RGBrgb(31, 151, 31)
HSLhsl(120, 66%, 36%)
HSVhsv(120, 79%, 59%)
CMYKcmyk(79.5%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.58, -54.23, 49.98)
CIE-LCHlch(54.58, 73.75, 137.33°)
OKLaboklab(59.07% -0.1472 0.1118)
OKLCHoklch(59.07% 0.185 142.8)
XYZxyz(11.8783, 22.5220, 5.0172)
Luminance0.2252 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F971F #971F97
analogous
#5B971F #1F971F #1F975B
triadic
#1F971F #1F1F97 #971F1F
tetradic
#1F971F #1F5B97 #971F97 #975B1F
square
#1F971F #1F5B97 #971F97 #975B1F
split-complementary
#1F971F #5B1F97 #971F5B
monochromatic
#0A310A #156415 #1F971F #29CA29 #54DC54

Accessibility & contrast

On white

3.81
#1F971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#1F971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F971F
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F971F#FFFFFF#000000##000000
##1F971F1.003.815.505.50
#FFFFFF3.811.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#8D7F2D
Tritanopia (blue-blind)
#009281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f971f;
/* rgb */ color: rgb(31, 151, 31);
/* oklch */ color: oklch(59.1% 0.185 142.8);
Tailwind
colors: {
  custom: {
    50: '#72b765',
    500: '#1f971f',
    950: '#000000',
  },
}
SCSS
$custom: #1f971f;
$custom-light: #72b765;
$custom-dark: #000000;
JSON
{
  "hex": "#1f971f",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5907,
    "c": 0.18482,
    "h": 142.8
  },
  "luminance": 0.22523
}

Semantic roles & 50–950 ramp

primary
#1F971F
secondary
#BF52BF
accent
#3FE9E9
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F971F

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

Preview Lab → · Contrast checker → · Palette generator →

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