#1F971B#1F971B

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

Color values

HEX#1F971B
RGBrgb(31, 151, 27)
HSLhsl(118, 70%, 35%)
HSVhsv(118, 82%, 59%)
CMYKcmyk(79.5%, 0%, 82.1%, 40.8%)
CIE-LABlab(54.56, -54.49, 51.21)
CIE-LCHlch(54.56, 74.77, 136.78°)
OKLaboklab(59.05% -0.1481 0.1138)
OKLCHoklch(59.05% 0.187 142.5)
XYZxyz(11.8288, 22.5022, 4.7567)
Luminance0.2250 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F971B #931B97
analogous
#5D971B #1F971B #1B9755
triadic
#1F971B #1B1F97 #971B1F
tetradic
#1F971B #1B5D97 #931B97 #97551B
square
#1F971B #1B5D97 #931B97 #97551B
split-complementary
#1F971B #551B97 #971B5D
monochromatic
#0A2F08 #146312 #1F971B #2ACB24 #52DF4D

Accessibility & contrast

On white

3.82
#1F971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F971B#FFFFFF#000000##000000
##1F971B1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8E7F2B
Tritanopia (blue-blind)
#009280
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #1f971b;
/* rgb */ color: rgb(31, 151, 27);
/* oklch */ color: oklch(59.0% 0.187 142.5);
Tailwind
colors: {
  custom: {
    50: '#72b763',
    500: '#1f971b',
    950: '#000000',
  },
}
SCSS
$custom: #1f971b;
$custom-light: #72b763;
$custom-dark: #000000;
JSON
{
  "hex": "#1f971b",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 118.065,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59046,
    "c": 0.18673,
    "h": 142.5
  },
  "luminance": 0.22504
}

Semantic roles & 50–950 ramp

primary
#1F971B
secondary
#BE4CC1
accent
#3BECE7
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F971B

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

Preview Lab → · Contrast checker → · Palette generator →

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