#5F971F#5F971F

#5F971F is a mid, vivid yellow-green. Relative luminance 0.247; OKLCH L 61.5% C 0.157 H 132.1°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5F971F
RGBrgb(95, 151, 31)
HSLhsl(88, 66%, 36%)
HSVhsv(88, 79%, 59%)
CMYKcmyk(37.1%, 0%, 79.5%, 40.8%)
CIE-LABlab(56.75, -37.30, 52.81)
CIE-LCHlch(56.75, 64.65, 125.23°)
OKLaboklab(61.46% -0.1055 0.1169)
OKLCHoklch(61.46% 0.157 132.1)
XYZxyz(16.0331, 24.6644, 5.2120)
Luminance0.2467 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F971F #571F97
analogous
#97931F #5F971F #23971F
triadic
#5F971F #1F5F97 #971F5F
tetradic
#5F971F #1F9793 #571F97 #971F23
square
#5F971F #1F9793 #571F97 #971F23
split-complementary
#5F971F #1F2397 #931F97
monochromatic
#1F310A #3F6415 #5F971F #7FCA29 #9DDC54

Accessibility & contrast

On white

3.54
#5F971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#5F971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F971F#FFFFFF#000000##000000
##5F971F1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#96872C
Tritanopia (blue-blind)
#609181
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5f971f;
/* rgb */ color: rgb(95, 151, 31);
/* oklch */ color: oklch(61.5% 0.157 132.1);
Tailwind
colors: {
  custom: {
    50: '#91b665',
    500: '#5f971f',
    950: '#000000',
  },
}
SCSS
$custom: #5f971f;
$custom-light: #91b665;
$custom-dark: #000000;
JSON
{
  "hex": "#5f971f",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 88,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61462,
    "c": 0.15747,
    "h": 132.1
  },
  "luminance": 0.24665
}

Semantic roles & 50–950 ramp

primary
#5F971F
secondary
#8552BF
accent
#3FE98E
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F971F

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

Preview Lab → · Contrast checker → · Palette generator →

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