#1F972C#1F972C

#1F972C is a mid, vivid green. Relative luminance 0.226; OKLCH L 59.2% C 0.177 H 144.2°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#1F972C
RGBrgb(31, 151, 44)
HSLhsl(127, 66%, 36%)
HSVhsv(127, 79%, 59%)
CMYKcmyk(79.5%, 0%, 70.9%, 40.8%)
CIE-LABlab(54.66, -53.15, 45.27)
CIE-LCHlch(54.66, 69.82, 139.58°)
OKLaboklab(59.17% -0.1437 0.1037)
OKLCHoklch(59.17% 0.177 144.2)
XYZxyz(12.0855, 22.6049, 6.1086)
Luminance0.2261 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F972C #971F8A
analogous
#4E971F #1F972C #1F9768
triadic
#1F972C #2C1F97 #972C1F
tetradic
#1F972C #1F4E97 #971F8A #97681F
square
#1F972C #1F4E97 #971F8A #97681F
split-complementary
#1F972C #681F97 #971F4E
monochromatic
#0A310E #15641D #1F972C #29CA3B #54DC63

Accessibility & contrast

On white

3.80
#1F972C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#1F972C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F972C
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F972C#FFFFFF#000000##000000
##1F972C1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A881C
Deuteranopia (green-blind)
#8D7F36
Tritanopia (blue-blind)
#009382
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f972c;
/* rgb */ color: rgb(31, 151, 44);
/* oklch */ color: oklch(59.2% 0.177 144.2);
Tailwind
colors: {
  custom: {
    50: '#71b76b',
    500: '#1f972c',
    950: '#000000',
  },
}
SCSS
$custom: #1f972c;
$custom-light: #71b76b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f972c",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 44
  },
  "hsl": {
    "h": 126.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5917,
    "c": 0.17719,
    "h": 144.2
  },
  "luminance": 0.22606
}

Semantic roles & 50–950 ramp

primary
#1F972C
secondary
#BF52B4
accent
#3FD6E9
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F972C

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

Preview Lab → · Contrast checker → · Palette generator →

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