#5B971F#5B971F

#5B971F is a mid, vivid yellow-green. Relative luminance 0.245; OKLCH L 61.2% C 0.160 H 133.2°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5B971F
RGBrgb(91, 151, 31)
HSLhsl(90, 66%, 36%)
HSVhsv(90, 79%, 59%)
CMYKcmyk(39.7%, 0%, 79.5%, 40.8%)
CIE-LABlab(56.54, -38.76, 52.54)
CIE-LCHlch(56.54, 65.29, 126.41°)
OKLaboklab(61.24% -0.1092 0.1164)
OKLCHoklch(61.24% 0.16 133.2)
XYZxyz(15.6281, 24.4555, 5.1930)
Luminance0.2446 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B971F #5B1F97
analogous
#97971F #5B971F #1F971F
triadic
#5B971F #1F5B97 #971F5B
tetradic
#5B971F #1F9797 #5B1F97 #971F1F
square
#5B971F #1F9797 #5B1F97 #971F1F
split-complementary
#5B971F #1F1F97 #971F97
monochromatic
#1E310A #3C6415 #5B971F #7ACA29 #98DC54

Accessibility & contrast

On white

3.56
#5B971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#5B971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B971F
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B971F#FFFFFF#000000##000000
##5B971F1.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#95862C
Tritanopia (blue-blind)
#5B9181
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5b971f;
/* rgb */ color: rgb(91, 151, 31);
/* oklch */ color: oklch(61.2% 0.160 133.2);
Tailwind
colors: {
  custom: {
    50: '#8fb665',
    500: '#5b971f',
    950: '#000000',
  },
}
SCSS
$custom: #5b971f;
$custom-light: #8fb665;
$custom-dark: #000000;
JSON
{
  "hex": "#5b971f",
  "rgb": {
    "r": 91,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 90,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61239,
    "c": 0.15962,
    "h": 133.2
  },
  "luminance": 0.24456
}

Semantic roles & 50–950 ramp

primary
#5B971F
secondary
#8952BF
accent
#3FE994
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5B971F

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

Preview Lab → · Contrast checker → · Palette generator →

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