#1F971C#1F971C

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

Color values

HEX#1F971C
RGBrgb(31, 151, 28)
HSLhsl(119, 69%, 35%)
HSVhsv(119, 81%, 59%)
CMYKcmyk(79.5%, 0%, 81.5%, 40.8%)
CIE-LABlab(54.56, -54.43, 50.91)
CIE-LCHlch(54.56, 74.53, 136.91°)
OKLaboklab(59.05% -0.1478 0.1133)
OKLCHoklch(59.05% 0.186 142.5)
XYZxyz(11.8405, 22.5070, 4.8186)
Luminance0.2251 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F971C #941C97
analogous
#5C971C #1F971C #1C9757
triadic
#1F971C #1C1F97 #971C1F
tetradic
#1F971C #1C5C97 #941C97 #97571C
square
#1F971C #1C5C97 #941C97 #97571C
split-complementary
#1F971C #571C97 #971C5C
monochromatic
#0A3009 #146312 #1F971C #2ACB26 #53DE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F971C#FFFFFF#000000##000000
##1F971C1.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)
#9A8800
Deuteranopia (green-blind)
#8E7F2B
Tritanopia (blue-blind)
#009280
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #1f971c;
/* rgb */ color: rgb(31, 151, 28);
/* oklch */ color: oklch(59.1% 0.186 142.5);
Tailwind
colors: {
  custom: {
    50: '#72b763',
    500: '#1f971c',
    950: '#000000',
  },
}
SCSS
$custom: #1f971c;
$custom-light: #72b763;
$custom-dark: #000000;
JSON
{
  "hex": "#1f971c",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 118.537,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59052,
    "c": 0.18627,
    "h": 142.5
  },
  "luminance": 0.22508
}

Semantic roles & 50–950 ramp

primary
#1F971C
secondary
#BE4EC1
accent
#3CECE7
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F971C

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

Preview Lab → · Contrast checker → · Palette generator →

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