#1F972B#1F972B

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

Color values

HEX#1F972B
RGBrgb(31, 151, 43)
HSLhsl(126, 66%, 36%)
HSVhsv(126, 79%, 59%)
CMYKcmyk(79.5%, 0%, 71.5%, 40.8%)
CIE-LABlab(54.66, -53.25, 45.67)
CIE-LCHlch(54.66, 70.15, 139.38°)
OKLaboklab(59.16% -0.144 0.1044)
OKLCHoklch(59.16% 0.178 144.1)
XYZxyz(12.0669, 22.5975, 6.0108)
Luminance0.2260 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F972B #971F8B
analogous
#4F971F #1F972B #1F9767
triadic
#1F972B #2B1F97 #972B1F
tetradic
#1F972B #1F4F97 #971F8B #97671F
square
#1F972B #1F4F97 #971F8B #97671F
split-complementary
#1F972B #671F97 #971F4F
monochromatic
#0A310E #15641D #1F972B #29CA39 #54DC62

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F972B#FFFFFF#000000##000000
##1F972B1.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)
#9A881A
Deuteranopia (green-blind)
#8D7F36
Tritanopia (blue-blind)
#009381
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f972b;
/* rgb */ color: rgb(31, 151, 43);
/* oklch */ color: oklch(59.2% 0.178 144.1);
Tailwind
colors: {
  custom: {
    50: '#71b76b',
    500: '#1f972b',
    950: '#000000',
  },
}
SCSS
$custom: #1f972b;
$custom-light: #71b76b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f972b",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 43
  },
  "hsl": {
    "h": 126,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59161,
    "c": 0.17784,
    "h": 144.1
  },
  "luminance": 0.22599
}

Semantic roles & 50–950 ramp

primary
#1F972B
secondary
#BF52B5
accent
#3FD8E9
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F972B

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

Preview Lab → · Contrast checker → · Palette generator →

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